Beispiel #1
0
            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);
            }
Beispiel #2
0
 private static string RemoveIsPrefix(string pn)
 {
     return(CBORUtilities.NameStartsWithWord(pn, "Is") ? pn.Substring(2) :
            pn);
 }