📄 3.6.txt
字号:
Listing 3.6 Performing a Case-Insensitive String Comparison
using System;
namespace _5_CaseComparison
{
class Class1
{
[STAThread]
static void Main(string[] args)
{
string str1 = “This Is A String.”;
string str2 = “This is a string.”;
Console.WriteLine( “Case sensitive comparison of” +
“ str1 and str2 = {0}”, String.Compare( str1, str2 ));
Console.WriteLine( “Case insensitive comparison of” +
“ str1 and str2 = {0}”, String.Compare( str1, str2, true ));
}
}
}
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -