c# get last character of string

C#
string str = "Hello World";
string substr = str.Substring(str.Length - 1);
Source

Also in C#: