Ok, I've programmed in Visual Basic .NET for a while, but I haven't programmed much in C#. I was wondering if there is a "tcase" in C#. "tcase" in Visual Basic would capitalize the first letter in every word of the string and make the rest of the word lowercase. It would be awesome if someone could help me out. It is much easier and quicker than making the string into an array and using substring and toupper() and tolower(). Thanks.
String Manipulation in C#... help.
Collapse
X
-
Tags: None
-
I not exactly good with string manipulation. I used this example from Microsoft's website.
Code://Get the culture property of the thread. CultureInfo cultureInfo = Thread.CurrentThread.CurrentCulture; //Create TextInfo object. TextInfo textInfo = cultureInfo.TextInfo; // Convert it textInfo.ToTitleCase(title)
Anyone else know any easier methods? -
Comment