コード例 #1
0
 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));
 }
コード例 #2
0
 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);
 }
コード例 #3
0
 public static PropertyConfig AfterDeserialize(this PropertyConfig config, params Action <PropertyInfo, Object>[] afterDeserializes)
 {
     return(config.AfterDeserialize((IEnumerable <Action <PropertyInfo, Object> >)afterDeserializes));
 }