Answers for "how to slice and get last 2 characters of a string in c#"

C#
3

how to remove last 3 characters from string in c#

myString = myString.Substring(0, myString.Length-3);
Posted by: Guest on October-02-2020
1

c# get last two characters of string

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

Code answers related to "how to slice and get last 2 characters of a string in c#"

C# Answers by Framework

Browse Popular Code Answers by Language