C# string to pick up last N characters code example
Example: last two characters of string c#
string str = "Hello World";
string substr = str.Substring(str.Length - 2);
string str = "Hello World";
string substr = str.Substring(str.Length - 2);