Posted By

emregulcan on 03/05/10


Tagged

c upper to VBNet convert lower titlecase


Versions (?)

Who likes this?

1 person have marked this snippet as a favorite

hinesnetwork


Convert LowerCase and UpperCase to TitleCase in .NET


 / Published in: C#
 

URL: http://www.devcurry.com/2009/12/convert-lowercase-and-uppercase-to.html

  1. string strLow = "lower case";
  2. string strT = CultureInfo.CurrentCulture.TextInfo.ToTitleCase(strLow);
  3. Console.WriteLine("Lower Case to Title Case: " + strT);
  4.  
  5. string strCap = "UPPER CASE";
  6. strT = CultureInfo.CurrentCulture.TextInfo.ToTitleCase(strCap.ToLower());
  7. Console.WriteLine("Upper Case to Title Case: " + strT);

Report this snippet  

You need to login to post a comment.