Reputation: 3767
how can I change character case so result be like :
"hello" = "Hello"
"hello germany" = Hello Germany"
regards
Upvotes: 2
Views: 239
Reputation: 2615
static void Main(string[] args)
{
string myString = "hello, world!";
Console.WriteLine(CultureInfo.CurrentCulture.TextInfo.ToTitleCase(myString));
Console.Read();
}
Upvotes: 1
Reputation: 54734
Is there a native Proper Case string function in C#?
See TextInfo.ToTitleCase
.
Upvotes: 1