Ejemplo n.º 1
0
 public static string SerializeObject(object obj, PropertyNameFormat propertyNameFormat)
 {
     return(JsonConvert.SerializeObject(obj, new JsonSerializerSettings()
     {
         ContractResolver = new JsonContractResolver()
         {
             PropertyNameFormat = propertyNameFormat
         }
     }));
 }
Ejemplo n.º 2
0
 public RuleArgs(string pPropertyName, PropertyNameFormat pPropertyNameDisplayMode)
 {
     mPropertyName           = pPropertyName;
     mPropertyNameFormatting = PropertyNameFormat.SplitByCase;
 }
Ejemplo n.º 3
0
 public RuleArgs(BusinessProperty pColumn, PropertyNameFormat pPropertyNameDisplayMode)
     : this(pColumn.Name, pPropertyNameDisplayMode)
 {
 }