c# get last 3 indexes code example Example: c# get last character of string mystring.Substring(mystring.Length - 4);