c# last three chars code example
Example 1: c# get last two characters of string
var result = str.Substring(str.Length - 2);
Example 2: last two characters of string c#
string str = "Hello World";
string substr = str.Substring(str.Length - 2);
var result = str.Substring(str.Length - 2);
string str = "Hello World";
string substr = str.Substring(str.Length - 2);