public static PropertyConfig AfterDeserialize <T>(this PropertyConfig config, Func <T, Object> afterDeserialize, double weight = 1.0) { if (afterDeserialize == null) { return(config); } return(config.AfterDeserialize((pi, o) => afterDeserialize(o.AssertCast <T>()), weight)); }
public static PropertyConfig AfterDeserialize(this PropertyConfig config, IEnumerable <Action <PropertyInfo, Object> > afterDeserializes) { (afterDeserializes ?? Seq.Empty <Action <PropertyInfo, Object> >()).ForEach(afterDeserialize => config.AfterDeserialize(afterDeserialize)); return(config); }
public static PropertyConfig AfterDeserialize(this PropertyConfig config, params Action <PropertyInfo, Object>[] afterDeserializes) { return(config.AfterDeserialize((IEnumerable <Action <PropertyInfo, Object> >)afterDeserializes)); }