how to output only the last letter of a string c# code example Example: get last character of string c# str = str.Substring(str.Length - 1);