public ImportType(Type type, ImportCardinality cardinality) { Assumes.NotNull(type); this._type = type; this._isAssignableCollectionType = IsTypeAssignableCollectionType(type); if (cardinality == ImportCardinality.ZeroOrMore) { this._elementType = CollectionServices.GetEnumerableElementType(type); } this._lazyType = CreateLazyType(this._elementType ?? this._type); }