C# char类型有自带的大小写转换方法:ToUpper和ToLowerchar str1 = 'a';char str2 = 'A';Char.ToUpper(str1);
Char.ToLower(str2);