在比较用户将看到但不会修改/更改的硬编码字符串时,文化信息很重要。
我假设不会,但我只是想安全。
例子:
static void Main()
{
string hardString = "IAMHardCodei";
string hardString2 = "IamHardCodei";
//Compare hardString and hardString2, ignoring case,
//and then do stuff based on that result
}