public static TSetter NameMatchingStrategy <TSetter>(this TSetter setter, NameMatchingStrategy value) where TSetter : TypeAdapterSetter { setter.CheckCompiled(); setter.Settings.NameMatchingStrategy = value; return(setter); }
public void Apply(NameMatchingStrategy other) { if (this.SourceMemberNameConverter == null) this.SourceMemberNameConverter = other.SourceMemberNameConverter; if (this.DestinationMemberNameConverter == null) this.DestinationMemberNameConverter = other.DestinationMemberNameConverter; }
public TwoWaysTypeAdapterSetter <TSource, TDestination> NameMatchingStrategy(NameMatchingStrategy value) { SourceToDestinationSetter.NameMatchingStrategy(value); DestinationToSourceSetter.NameMatchingStrategy(new NameMatchingStrategy { SourceMemberNameConverter = value.DestinationMemberNameConverter, DestinationMemberNameConverter = value.SourceMemberNameConverter, }); return(this); }
public void Apply(NameMatchingStrategy other) { if (this.SourceMemberNameConverter == null) { this.SourceMemberNameConverter = other.SourceMemberNameConverter; } if (this.DestinationMemberNameConverter == null) { this.DestinationMemberNameConverter = other.DestinationMemberNameConverter; } }