Beispiel #1
0
        public override string ConvertName(string name)
        {
            // We need to camelCase everything but this one property or the host won't honor it.
            if (string.Equals("IsCodeless", name, System.StringComparison.OrdinalIgnoreCase))
            {
                return("IsCodeless");
            }

            return(CamelCase.ConvertName(name));
        }
Beispiel #2
0
 public override string ConvertName(string name)
 {
     if (name == "Validity")
     {
         return("VALIDITY");
     }
     else if (name == "Offset")
     {
         return("OFFSET");
     }
     else if (name == "TypeId")
     {
         return("TYPE_ID");
     }
     else if (name == "Data")
     {
         return("DATA");
     }
     else
     {
         return(CamelCase.ConvertName(name));
     }
 }
 public override string ConvertName(string name)
 {
     if (name.Length > 1)
     {
         name = CamelCase.ConvertName(name);
         return(char.ToLowerInvariant(name[0]) + name[1..]);