19 references to ConstraintServices
System.ComponentModel.Composition (19)
System\ComponentModel\Composition\ConstraintServices.cs (16)
27
Expression constraintBody =
ConstraintServices
.CreateContractConstraintBody(contractName, parameter);
31
Expression typeIdentityConstraintBody =
ConstraintServices
.CreateTypeIdentityConstraint(requiredTypeIdentity, parameter);
38
Expression? metadataConstraintBody =
ConstraintServices
.CreateMetadataConstraintBody(requiredMetadata, parameter);
47
Expression policyConstraintBody =
ConstraintServices
.CreateCreationPolicyConstraint(requiredCreationPolicy, parameter);
62
Expression.Property(parameter,
ConstraintServices
._exportDefinitionContractNameProperty),
131
Expression.Property(parameter,
ConstraintServices
._exportDefinitionMetadataProperty),
132
ConstraintServices
._metadataContainsKeyMethod,
156
ConstraintServices
._typeIsInstanceOfTypeMethod,
158
Expression.Property(parameter,
ConstraintServices
._exportDefinitionMetadataProperty),
159
ConstraintServices
._metadataItemMethod,
179
ConstraintServices
._metadataEqualsMethod,
181
Expression.Property(parameter,
ConstraintServices
._exportDefinitionMetadataProperty),
182
ConstraintServices
._metadataItemMethod,
191
Expression metadataExpression = Expression.Property(exportDefinitionParameter,
ConstraintServices
._exportDefinitionMetadataProperty);
196
ConstraintServices
._metadataContainsKeyMethod,
202
ConstraintServices
._metadataItemMethod,
System\ComponentModel\Composition\Primitives\ContractBasedImportDefinition.cs (1)
273
_constraint ??=
ConstraintServices
.CreateConstraint(ContractName, RequiredTypeIdentity, RequiredMetadata, RequiredCreationPolicy);
System\ComponentModel\Composition\ReflectionModel\PartCreatorMemberImportDefinition.cs (1)
42
return
ConstraintServices
.CreatePartCreatorConstraint(base.Constraint, _productImportDefinition);
System\ComponentModel\Composition\ReflectionModel\PartCreatorParameterImportDefinition.cs (1)
42
return
ConstraintServices
.CreatePartCreatorConstraint(base.Constraint, _productImportDefinition);