在C#中将字符串转换小写字母示例

string sentence = "Onitroad.com a tutorial Website for info-technology(IT).";

Console.WriteLine("Oroirnal String: {0}", sentence);

Console.WriteLine("Uppercase: {0}", sentence.ToUpper());

Console.WriteLine("Lowercase: {0}", sentence.ToLower());
C#将字符串转换为小写

在本文中,我们将讨论如何在C#中将字符串转换小写字母。

字符串的Tolower方法将字符串转换为小写。

日期:2020-04-11 23:03:44 来源:oir作者:oir