public static SentenceCase ( string input ) : String | ||
input | string | The string to convert. |
return | String |
public static String SentenceCase(string input)
{
if (input.Length < 1)
{
return input;
}
else
{
string sentence = input.ToLower();
return sentence[0].ToString().ToUpper() + sentence.Substring(1);
}
}