Search
 
SCRIPT & CODE EXAMPLE
 

CSHARP

get first and last item list c#

List<string> _ids = new List<string>() { "aaa", "bbb", "ccc", "ddd" };
var first = _ids.First();
var last = _ids.Last();
Console.WriteLine(first);
Console.WriteLine(last);
Comment

get first and last item list c#

List<string> _ids = new List<string>() { "aaa", "bbb", "ccc", "ddd" };
var first = _ids[0]; //first element
var last = _ids[_ids.Count - 1]; //last element
Comment

PREVIOUS NEXT
Code Example
Csharp :: add numbers c# 
Csharp :: getString 
Csharp :: what is string args in c# 
Csharp :: C# .net JwtSecurityTokenHandler jwttoken claims to object 
Csharp :: c# stack 
Csharp :: c# windows form BalloonTipIcon close 
Csharp :: asp.net core mvc not triggering client side validation 
Csharp :: .net framework cheat sheet 
Csharp :: convert string to boolean c# 
Csharp :: custom vs code snippet 
Csharp :: unity c# bool to int conversion 
Csharp :: list<string,string c# 
Csharp :: unity pause 
Csharp :: ocr library for c# 
Csharp :: C# String Manipulation: 
Csharp :: google tradutor 
Csharp :: @razor identify last foreach 
Csharp :: c# jump space 
Csharp :: how to show error xtramessagebox in devexpress c# 
Csharp :: git set origin url 
Html :: starter data jpa maven dependency 
Html :: multipart form 
Html :: html input not editable 
Html :: input acepta solo imagenes 
Html :: alphanumeric input 
Html :: input hidden 
Html :: input readonly html 
Html :: html display only on desktop 
Html :: font awesome icons 
Html :: textarea placeholder 
ADD CONTENT
Topic
Content
Source link
Name
3+7 =