AutoMapper.TypeMap.IncludeDerivedTypes C# (CSharp) Метод

IncludeDerivedTypes() публичный Метод

public IncludeDerivedTypes ( Type derivedSourceType, Type derivedDestinationType ) : void
derivedSourceType System.Type
derivedDestinationType System.Type
Результат void
        public void IncludeDerivedTypes(Type derivedSourceType, Type derivedDestinationType)
        {
            var derivedTypes = new TypePair(derivedSourceType, derivedDestinationType);
            if (derivedTypes.Equals(Types))
            {
                throw new InvalidOperationException("You cannot include a type map into itself.");
            }
            _includedDerivedTypes.Add(derivedTypes);
        }