示例#1
0
        public static TSetter NameMatchingStrategy <TSetter>(this TSetter setter, NameMatchingStrategy value) where TSetter : TypeAdapterSetter
        {
            setter.CheckCompiled();

            setter.Settings.NameMatchingStrategy = value;
            return(setter);
        }
示例#2
0
 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);
 }
示例#4
0
 public void Apply(NameMatchingStrategy other)
 {
     if (this.SourceMemberNameConverter == null)
     {
         this.SourceMemberNameConverter = other.SourceMemberNameConverter;
     }
     if (this.DestinationMemberNameConverter == null)
     {
         this.DestinationMemberNameConverter = other.DestinationMemberNameConverter;
     }
 }