示例#1
0
 public static PropertyRule Engine <T>(this PropertyRule rule, Func <Json, T> deserialize, Func <T, Json> serialize)
 {
     return(rule.Record(cfg => cfg.Engine(deserialize, serialize)));
 }
示例#2
0
 public static PropertyRule AddValidators(this PropertyRule rule, IEnumerable <Action <PropertyInfo, Object> > validators)
 {
     return(rule.Record(cfg => cfg.AddValidators(validators)));
 }
示例#3
0
 public static PropertyRule Engine(this PropertyRule rule, Func <PropertyInfo, Json, Object> deserialize, Func <Object, Json> serialize)
 {
     return(rule.Record(cfg => cfg.Engine(deserialize, serialize)));
 }
示例#4
0
 public static PropertyRule AddValidator(this PropertyRule rule, Action <PropertyInfo, Object> validator)
 {
     return(rule.Record(cfg => cfg.AddValidator(validator)));
 }
示例#5
0
 public static PropertyRule AddValidators(this PropertyRule rule, params Action <PropertyInfo, Object>[] validators)
 {
     return(rule.Record(cfg => cfg.AddValidators(validators)));
 }
示例#6
0
 public static PropertyRule BeforeSerialize(this PropertyRule rule, IEnumerable <Action <PropertyInfo, Object> > beforeSerializes)
 {
     return(rule.Record(cfg => cfg.BeforeSerialize(beforeSerializes)));
 }
示例#7
0
 public static PropertyRule AddValidator <T>(this PropertyRule rule, Action <T> validator)
 {
     return(rule.Record(cfg => cfg.AddValidator(validator)));
 }
示例#8
0
 public static PropertyRule BeforeSerialize(this PropertyRule rule, Func <PropertyInfo, Object, Object> beforeSerialize, double weight = 1.0)
 {
     return(rule.Record(cfg => cfg.BeforeSerialize(beforeSerialize, weight)));
 }
示例#9
0
 public static PropertyRule BeforeSerialize(this PropertyRule rule, params Action <PropertyInfo, Object>[] beforeSerializes)
 {
     return(rule.Record(cfg => cfg.BeforeSerialize(beforeSerializes)));
 }
示例#10
0
 public static PropertyRule BeforeSerialize <T>(this PropertyRule rule, Action <T> beforeSerialize, double weight = 1.0)
 {
     return(rule.Record(cfg => cfg.BeforeSerialize(beforeSerialize, weight)));
 }
 public static PropertyRule AfterDeserialize <T>(this PropertyRule rule, Action <T> afterDeserialize, double weight = 1.0)
 {
     return(rule.Record(cfg => cfg.AfterDeserialize(afterDeserialize, weight)));
 }
 public static PropertyRule AfterDeserialize(this PropertyRule rule, IEnumerable <Action <PropertyInfo, Object> > afterDeserializes)
 {
     return(rule.Record(cfg => cfg.AfterDeserialize(afterDeserializes)));
 }
 public static PropertyRule AfterDeserialize(this PropertyRule rule, params Action <PropertyInfo, Object>[] afterDeserializes)
 {
     return(rule.Record(cfg => cfg.AfterDeserialize(afterDeserializes)));
 }
 public static PropertyRule AfterDeserialize(this PropertyRule rule, Func <PropertyInfo, Object, Object> afterDeserialize, double weight = 1.0)
 {
     return(rule.Record(cfg => cfg.AfterDeserialize(afterDeserialize, weight)));
 }