9 references to ImportType
System.ComponentModel.Composition (9)
System\ComponentModel\Composition\ReflectionModel\ImportingItem.cs (4)
51Type elementType = ImportType.ElementType ?? typeof(object); 79return CastSingleExportToImportType(ImportType.ActualType, exports[0]); 84if (ImportType.CastExport != null) 86return ImportType.CastExport(export);
System\ComponentModel\Composition\ReflectionModel\ImportingMember.cs (4)
48if (_member.CanWrite && ImportType.IsAssignableCollectionType) 110Type? itemType = CollectionServices.GetCollectionElementType(ImportType.ActualType); 145ConstructorInfo? constructor = ImportType.ActualType.GetConstructor(Type.EmptyTypes); 160ImportType.ActualType.FullName),
System\ComponentModel\Composition\ReflectionModel\ReflectionComposablePart.cs (1)
322if (definition.Cardinality == ImportCardinality.ZeroOrMore && !import.ImportType.IsAssignableCollectionType)