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