1 override of Cardinality
System.ComponentModel.Composition (1)
System\ComponentModel\Composition\Hosting\ImportSourceImportDefinitionHelpers.cs (1)
63public override ImportCardinality Cardinality
33 references to Cardinality
System.ComponentModel.Composition (33)
System\ComponentModel\Composition\ExportServices.cs (1)
155return MatchCardinality(actualCardinality, definition.Cardinality);
System\ComponentModel\Composition\Hosting\AggregateExportProvider.cs (1)
160if (definition.Cardinality == ImportCardinality.ZeroOrMore)
System\ComponentModel\Composition\Hosting\CatalogExportProvider.ScopeManager.cs (1)
103productImportDefinition.Cardinality,
System\ComponentModel\Composition\Hosting\ExportProvider.cs (8)
52/// <see cref="ImportDefinition.Cardinality"/> is <see cref="ImportCardinality.ExactlyOne"/> and 58/// <see cref="ImportDefinition.Cardinality"/> is <see cref="ImportCardinality.ZeroOrOne"/> or 86/// <see cref="ImportDefinition.Cardinality"/> is <see cref="ImportCardinality.ExactlyOne"/> and 92/// <see cref="ImportDefinition.Cardinality"/> is <see cref="ImportCardinality.ZeroOrOne"/> or 132/// <see langword="true"/> if <see cref="ImportDefinition.Cardinality"/> is 136/// <see cref="ImportDefinition.Cardinality"/> is <see cref="ImportCardinality.ZeroOrOne"/> or 169/// if <see cref="ImportDefinition.Cardinality"/> is <see cref="ImportCardinality.ExactlyOne"/> 221definition.Cardinality == ImportCardinality.ZeroOrOne)
System\ComponentModel\Composition\Hosting\FilteredCatalog.Traversal.cs (2)
19return IncludeDependencies(i => i.Cardinality == ImportCardinality.ExactlyOne); 42return IncludeDependents(i => i.Cardinality == ImportCardinality.ExactlyOne);
System\ComponentModel\Composition\Hosting\ImportEngine.cs (1)
761return import.Cardinality == ImportCardinality.ExactlyOne;
System\ComponentModel\Composition\Hosting\ImportSourceImportDefinitionHelpers.cs (1)
65get { return _sourceDefinition.Cardinality; }
System\ComponentModel\Composition\Hosting\ScopingExtensions.cs (1)
74if (StringComparers.ContractName.Equals(contractName, import.ContractName) && (import.Cardinality == importCardinality))
System\ComponentModel\Composition\Primitives\ComposablePart.cs (2)
187/// <paramref name="exports"/> is empty and <see cref="ImportDefinition.Cardinality"/> is 193/// <see cref="ImportDefinition.Cardinality"/> is <see cref="ImportCardinality.ZeroOrOne"/> or
System\ComponentModel\Composition\Primitives\ContractBasedImportDefinition.cs (1)
37/// <see cref="RequiredMetadata"/>, <see cref="ImportDefinition.Cardinality"/>,
System\ComponentModel\Composition\Primitives\ImportDefinition.cs (1)
33/// property, and optionally, the <see cref="Cardinality"/>, <see cref="IsPrerequisite"/>
System\ComponentModel\Composition\Primitives\PrimitivesServices.cs (1)
90contractBasedImport.Cardinality,
System\ComponentModel\Composition\ReflectionModel\GenericSpecializationPartCreationInfo.cs (4)
311productImport.Cardinality, 324productImport.Cardinality, 354productImport.Cardinality, 367productImport.Cardinality,
System\ComponentModel\Composition\ReflectionModel\ImportingItem.cs (1)
35if (Definition.Cardinality == ImportCardinality.ZeroOrMore)
System\ComponentModel\Composition\ReflectionModel\ImportingMember.cs (1)
41if (Definition.Cardinality != ImportCardinality.ZeroOrMore)
System\ComponentModel\Composition\ReflectionModel\PartCreatorMemberImportDefinition.cs (1)
20productImportDefinition.RequiredMetadata, productImportDefinition.Cardinality, productImportDefinition.IsRecomposable, false, productImportDefinition.RequiredCreationPolicy, MetadataServices.EmptyMetadata, origin)
System\ComponentModel\Composition\ReflectionModel\PartCreatorParameterImportDefinition.cs (1)
21productImportDefinition.RequiredMetadata, productImportDefinition.Cardinality, CreationPolicy.Any, MetadataServices.EmptyMetadata, origin)
System\ComponentModel\Composition\ReflectionModel\ReflectionComposablePart.cs (2)
322if (definition.Cardinality == ImportCardinality.ZeroOrMore && !import.ImportType.IsAssignableCollectionType) 488if (definition.Cardinality == ImportCardinality.ExactlyOne)
System\ComponentModel\Composition\ReflectionModel\ReflectionMemberImportDefinition.cs (1)
35return new ImportingMember(this, member, new ImportType(member.ReturnType, Cardinality));
System\ComponentModel\Composition\ReflectionModel\ReflectionParameterImportDefinition.cs (1)
34return new ImportingParameter(this, new ImportType(ImportingLazyParameter.GetNotNullValue("parameter").ParameterType, Cardinality));