Answers for "c# string ends with"

C#
0

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
Posted by: Guest on October-15-2021

C# Answers by Framework

Browse Popular Code Answers by Language