📌  相关文章
📜  c# 字符串等于忽略大小写 - C# 代码示例

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

代码示例2
// There are two ways to check if 2 strings are the same:
string str1 = "Hello";
string str2 = "Hello";

// The first is using double equals sign ==
str1 == str2; // Output: true

// The second is using the 'Equals()' function
str1.Equals(str2); // Output: true