Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR CSHARP

c# get last two characters of string

// str = "Hello world";
var result = str.Substring(str.Length - 2);
// result = "ld"
Source by stackoverflow.com #
 
PREVIOUS NEXT
Tagged: #characters #string
ADD COMMENT
Topic
Name
9+7 =