Esempio n. 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)));
 }
Esempio n. 2
0
 public static PropertyRule AddValidators(this PropertyRule rule, IEnumerable <Action <PropertyInfo, Object> > validators)
 {
     return(rule.Record(cfg => cfg.AddValidators(validators)));
 }
Esempio n. 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)));
 }
Esempio n. 4
0
 public static PropertyRule AddValidator(this PropertyRule rule, Action <PropertyInfo, Object> validator)
 {
     return(rule.Record(cfg => cfg.AddValidator(validator)));
 }
Esempio n. 5
0
 public static PropertyRule AddValidators(this PropertyRule rule, params Action <PropertyInfo, Object>[] validators)
 {
     return(rule.Record(cfg => cfg.AddValidators(validators)));
 }
Esempio n. 6
0
 public static PropertyRule BeforeSerialize(this PropertyRule rule, IEnumerable <Action <PropertyInfo, Object> > beforeSerializes)
 {
     return(rule.Record(cfg => cfg.BeforeSerialize(beforeSerializes)));
 }
Esempio n. 7
0
 public static PropertyRule AddValidator <T>(this PropertyRule rule, Action <T> validator)
 {
     return(rule.Record(cfg => cfg.AddValidator(validator)));
 }
Esempio n. 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)));
 }
Esempio n. 9
0
 public static PropertyRule BeforeSerialize(this PropertyRule rule, params Action <PropertyInfo, Object>[] beforeSerializes)
 {
     return(rule.Record(cfg => cfg.BeforeSerialize(beforeSerializes)));
 }
Esempio n. 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)));
 }