C#转换字符大小写 发布时间:2023/10/11 编程学习网为您整理以下代码实例,主要实现:C#转换字符大小写,希望可以帮到各位朋友。 using System; using System.Collections.Generic; using System.Text; namespace Demo { class MyApplication { static voID Main(string[] args) { string str; str = "AMIT"; Console.Writeline("UpperCase : {0}", str); // convert to lowercase Console.Writeline("Converted to LowerCase : {0}", str.Tolower()); Console.Readline(); } } } 复制代码