C# get last 43 char in string code example Example: c# get last two characters of string var result = str.Substring(str.Length - 2);