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