public TypeAdapterConfig() { this.Rules = RulesTemplate.ToList(); var settings = new TypeAdapterSettings(); this.Default = new TypeAdapterSetter(settings, this); this.Rules.Add(new TypeAdapterRule { Priority = arg => - 100, Settings = settings, }); }
public TypeAdapterConfig() { this.Rules = RulesTemplate.ToList(); var settings = new TypeAdapterSettings { ValueAccessingStrategies = ValueAccessingStrategiesTemplate.ToList(), NameMatchingStrategy = NameMatchingStrategy.Exact, }; this.Default = new TypeAdapterSetter(settings, this); this.Rules.Add(new TypeAdapterRule { Priority = (sourceType, destinationType, mapType) => - 100, Settings = settings, }); }