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