Answers for "last 2 chars of a string c#"

C#
3

c# get last two characters of string

var result = str.Substring(str.Length - 2);
Posted by: Guest on September-18-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 "last 2 chars of a string c#"

C# Answers by Framework

Browse Popular Code Answers by Language