how to check the last character of a string in c# code example
Example: c# get last character of string
string str = "Hello World";
string substr = str.Substring(str.Length - 1);
string str = "Hello World";
string substr = str.Substring(str.Length - 1);