Пример #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;
 }
Пример #3
0
 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;
     }
 }