Answers for "c# get string before the last two characters"

C#
1

c# get last two characters of string

var result = str.Substring(str.Length - 2);
Posted by: Guest on September-18-2020
0

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 "c# get string before the last two characters"

C# Answers by Framework

Browse Popular Code Answers by Language