how to get last letters of string in 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);