Check out example codes for "c# get last two characters of string". It will help you in understanding the concepts better.

Code Example 1

var result = str.Substring(str.Length - 2);

Learn ReactJs, React Native from akashmittal.com