Is there a native Proper Case string function in C#? [duplicate]

String s  = "yOu caN Use thIs"

s = System.Threading.Thread.CurrentThread
           .CurrentCulture.TextInfo.ToTitleCase(s.ToLower());

The main limitation I can see with this is that it’s not “true” title case. i.e. In the phrase “WaR aNd peaCe”, the “and” part should be lowercase in English. This method would capitalise it though.

Leave a Comment

Hata!: SQLSTATE[HY000] [1045] Access denied for user 'divattrend_liink'@'localhost' (using password: YES)