Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR CSHARP

c# list index

// Get the first item from the list

using System.Linq;

var myList = new List<string>{ "Yes", "No", "Maybe"};
var firstItem = myList.ElementAt(0);

// Do something with firstItem
Source by stackoverflow.com #
 
PREVIOUS NEXT
Tagged: #list #index
ADD COMMENT
Topic
Name
6+7 =