Search
 
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
Name
3+4 =