c# - Proper Case Title Case Question -


Am I doing wrong here? I want the username to be shown in the output in proper order, but I can not understand it.

  string appropriate = this.xTripNameTextBox.Text; CultureInfo Reasonable Season = System threading. Thread Present. TextInfo currentInfo = properCase.TextInfo; Appropriate = Current Infotech (appropriate); this. XTripOutputLabel.Text = Proper + environment. New Line + "The total gallons you use:" + output. Toastring ("0") + Environment. NewLine + "Total amount will cost you:" + Coutput.ToString ("C") + Environment. NewLine + "Your Customer Number" + rnd1.ext (1, 1000). Ostring (); I have tested all upper case words on the following:  

string appropriate = "test STRING"; CultureInfo Reasonable Season = System threading. Thread Present. TextInfo currentInfo = properCase.TextInfo; Appropriate = current information Troutelet Seas (current info .. Taylor (appropriate)); // Replaceable = "Test Sting"

So - Change to reduce the string before calling ToTitleCase .

The documentation says that a string that does not change all upper case (such as a short word) and confirms the sample code given in the post.


Comments