Answers for "last occurrence of a character in a string c#"

C#
6

check last character of a string c#

string str = "Hello World";
string substr = str.Substring(str.Length - 1);
Posted by: Guest on May-23-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 "last occurrence of a character in a string c#"

C# Answers by Framework

Browse Popular Code Answers by Language