c# get last character of stringsa code example
Example 1: c# get last character of string
string str = "Hello World";
string substr = str.Substring(str.Length - 1);
Example 2: get last character of string c#
str = str.Substring(str.Length - 1);
string str = "Hello World";
string substr = str.Substring(str.Length - 1);
str = str.Substring(str.Length - 1);