public string GetAdjustedName(bool useCamelCase) { string thisName = this.Name; if (useCamelCase) { if (CBORUtilities.NameStartsWithWord(thisName, "Is")) { thisName = thisName.Substring(2); } thisName = CBORUtilities.FirstCharLower(thisName); } else { thisName = CBORUtilities.FirstCharUpper(thisName); } return(thisName); }
private static string RemoveIsPrefix(string pn) { return(CBORUtilities.NameStartsWithWord(pn, "Is") ? pn.Substring(2) : pn); }