Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR CSHARP

c# string ends with

string x = "Test1234";
Console.WriteLine(x.EndsWith("1234")); 

//Output: true

string y = "Test1234 test2";
Console.WriteLine(y.EndsWith("test2")); 

//Output: true
 
PREVIOUS NEXT
Tagged: #string #ends
ADD COMMENT
Topic
Name
4+4 =