public void IncludeBaseTypes(Type baseSourceType, Type baseDestinationType) { var baseTypes = new TypePair(baseSourceType, baseDestinationType); if (baseTypes.Equals(TypePair)) { throw new InvalidOperationException("You cannot include a type map into itself."); } _includedBaseTypes.Add(baseTypes); }
public void IncludeDerivedTypes(Type derivedSourceType, Type derivedDestinationType) { var derivedTypes = new TypePair(derivedSourceType, derivedDestinationType); if (derivedTypes.Equals(TypePair)) { throw new InvalidOperationException("You cannot include a type map into itself."); } _includedDerivedTypes.Add(derivedTypes); }