DekGenius.com
Home
(current)
Dictionary
BOOKS
LYRICS
CHORD
SCRIPT & CODE EXAMPLE
Karaoke language
Search
Go
SCRIPT & CODE EXAMPLE
CODE EXAMPLE FOR CSHARP
c# last char in string
string msg = "Hello"; string last_char = msg[^1..]; Console.WriteLine(last_char); // output: o
Source by reactgo.com #
PREVIOUS
NEXT
Tagged:
#char
#string
ADD COMMENT
Topic
COMMENT
Name
3+4 =
Submit