如何更改字符大小写,结果如下:
"hello" = "Hello"
"hello germany" = Hello Germany"
问候
答案 0 :(得分:1)
答案 1 :(得分:1)
static void Main(string[] args)
{
string myString = "hello, world!";
Console.WriteLine(CultureInfo.CurrentCulture.TextInfo.ToTitleCase(myString));
Console.Read();
}