I\'m looking for a function to convert a string of text that is in UpperCase to SentenceCase. All the examples I can find turn the text into TitleCase.
<
This works for me.
/// /// Converts a string to sentence case. /// /// The string to convert. /// A string public static string SentenceCase(string input) { if (input.Length < 1) return input; string sentence = input.ToLower(); return sentence[0].ToString().ToUpper() + sentence.Substring(1); }