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