protected static bool ProcessIgnores( CompileArgument arg, IMemberModel destinationMember, out IgnoreDictionary.IgnoreItem ignore) { ignore = new IgnoreDictionary.IgnoreItem(); if (!destinationMember.ShouldMapMember(arg, MemberSide.Destination)) { return(true); } return(arg.Settings.Ignore.TryGetValue(destinationMember.Name, out ignore) && ignore.Condition == null); }
protected static bool ProcessIgnores( TypeAdapterSettings config, IMemberModel destinationMember, out LambdaExpression condition) { condition = null; if (!destinationMember.ShouldMapMember(config.ShouldMapMember, MemberSide.Destination)) { return(true); } return(config.IgnoreIfs.TryGetValue(destinationMember.Name, out condition) && condition == null); }