using System.Globalization;
public static void Main(string[] args)
Console.WriteLine("Enter the name:");
string name = Console.ReadLine();
name = StringToCamelCase(name);
public static string FirstLetterToUpper(string str)
return char.ToUpper(str[0]) + str.Substring(1);
public static string StringToCamelCase(string str)
System.Globalization.TextInfo txtInfo = new CultureInfo("en-us", false).TextInfo;
str = txtInfo.ToTitleCase(str);