DekGenius.com
Home
(current)
Dictionary
BOOKS
LYRICS
CHORD
SCRIPT & CODE EXAMPLE
Karaoke language
Search
Go
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
COMMENT
Name
6+2 =
Submit