• Webinars
  • Docs
  • Download
  • Blogs
  • Contact Us
Show / Hide Table of Contents

Method Last

Last()

Returns the last element of the list.

Declaration
T Last()
Returns
Type Description
T

The last element in the list.

Examples

The following code sample shows how to get last element in distributed list.

ICache cache = CacheManager.GetCache("demoClusteredCache");
string dataTypeName = "DistributedList";

IDistributedList<Product> list = cache.DataTypeManager.GetList<Product>(dataTypeName);

Product product = list.Last();
Back to top Copyright © 2017 Alachisoft