C# ToLowe() 方法用于将字符串转换为小写。它返回一个小写的字符串。
public string ToLower() public string ToLower(CultureInfo)
第一种方法不带任何参数。
它返回一个字符串。
using System;
public class StringExample
{
public static void Main(string[] args)
{
string s1 = "Hello C#";
string s2 = s1.ToLower();
Console.WriteLine(s2);
}
}
输出:
hello c#
