📌  相关文章
📜  c# 字符串以 - C# 代码示例结尾

📅  最后修改于: 2022-03-11 14:48:50.652000             🧑  作者: Mango

代码示例1
string x = "Test1234";
Console.WriteLine(x.EndsWith("1234")); 

//Output: true

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

//Output: true