h1.post-title { color:orange; font-family:verdana,Arial; font-weight:bold; padding-bottom:5px; text-shadow:#64665b 0px 1px 1px; font-size:32px; } -->

Pages

Convert String to Camel Case in C#.net

Convert String to Camel Case in C#.net

Declare namespace
using System.Globalization;
Method for Convert String into CamelCase in C#.net
  private string  ConvertStringToCamelCase(string str)
        {
            TextInfo obj = new CultureInfo("en-US", false).TextInfo;
            return obj.ToTitleCase(str);
        }
Call ConvertStringToCamelCase() like this
MessageBox.Show(ConvertStringToTitle("Lakshmi nAARAYANAN")); MessageBox.Show(ConvertStringToTitle("lakshmi nAARAYANAN"));
Output:
Lakshmi Narayanan