Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR CSHARP

get last index C#

//Before C# 8
var last = array[array.Length - 1];

//After C# 8
var last = array[^1];
Source by stackoverflow.com #
 
PREVIOUS NEXT
Tagged: #index
ADD COMMENT
Topic
Name
9+8 =