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

Method First

First()

Returns the first element of the list.

Declaration
T First()
Returns
Type Description
T

The first element in the list.

Examples

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

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

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

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