C# 如何更改字符大小写?

C# 如何更改字符大小写?,c#,C#,如何更改字符大小写以使结果如下: "hello" = "Hello" "hello germany" = Hello Germany" 问候 看 static void Main(string[] args) { string myString = "hello, world!"; Console.WriteLine(CultureInfo.CurrentCulture.TextInfo.ToTitleCase(myString)); Console.Read(); }

如何更改字符大小写以使结果如下:

"hello" = "Hello"
"hello germany" = Hello Germany"
问候

static void Main(string[] args)
{
    string myString = "hello, world!";
    Console.WriteLine(CultureInfo.CurrentCulture.TextInfo.ToTitleCase(myString));
    Console.Read();
}