Answers for "how to get last two letters of a string in c#"

C#
15

c# get last character of string

string str = "Hello World";
string substr = str.Substring(str.Length - 1);
Posted by: Guest on May-23-2020
2

last two characters of string c#

string str = "Hello World";
string substr = str.Substring(str.Length - 2);
Posted by: Guest on July-20-2020

Code answers related to "how to get last two letters of a string in c#"

C# Answers by Framework

Browse Popular Code Answers by Language