This is all asp.net c#.
I have an enum
public enum ControlSelectionType { NotApplicable = 1, SingleSelectRadioButtons = 2, SingleSelectD
Tillito's answer does not handle strings already containing spaces well, or Acronyms. This fixes it:
public static string SplitCamelCase(string input) { return Regex.Replace(input, "(?<=[a-z])([A-Z])", " $1", RegexOptions.Compiled); }