Horje
get first and last item list c# Code Example
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);
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




Csharp

Related
c# convert ad objectguid to string Code Example c# convert ad objectguid to string Code Example
Task w = Task.Delay(600);w.Wait();new Program().Start(); Code Example Task w = Task.Delay(600);w.Wait();new Program().Start(); Code Example
c# FileSystemWatcher Code Example c# FileSystemWatcher Code Example
InverseTransformDirection Code Example InverseTransformDirection Code Example
Wpf hexagon Code Example Wpf hexagon Code Example

Type:
Code Example
Category:
Coding
Sub Category:
Code Example
Uploaded by:
Admin
Views:
11