get last character of a string c# code example
Example 1: get last character of string c#
str = str.Substring(str.Length - 1);
Example 2: c# get last character of string
mystring.Substring(mystring.Length - 4);
str = str.Substring(str.Length - 1);
mystring.Substring(mystring.Length - 4);