Globalization can help to chnage the first letter to upper case, Here is how in C#:
string test = "Test UppEr";
string formatted = System.Globalization.CultureInfo.CurrentUICulture.TextInfo.ToTitleCase(test);
Result will be "Test Upper"
string test = "Test UppEr";
string formatted = System.Globalization.CultureInfo.CurrentUICulture.TextInfo.ToTitleCase(test);
Result will be "Test Upper"
No comments:
Post a Comment