19 references to GetValue
System.ComponentModel.Composition (19)
System\ComponentModel\Composition\Hosting\CatalogExportProvider.CatalogExport.cs (1)
65
CreationPolicy partPolicy = partDefinition.Metadata.
GetValue
<CreationPolicy>(CompositionConstants.PartCreationPolicyMetadataName);
System\ComponentModel\Composition\Hosting\TypeCatalog.cs (1)
297
string? genericContractName = definition.Metadata.
GetValue
<string>(CompositionConstants.GenericContractMetadataName);
System\ComponentModel\Composition\Primitives\ContractBasedImportDefinition.cs (2)
311
string? exportTypeIdentity = definition.Metadata.
GetValue
<string>(CompositionConstants.ExportTypeIdentityMetadataName);
355
CreationPolicy exportPolicy = definition.Metadata.
GetValue
<CreationPolicy>(CompositionConstants.PartCreationPolicyMetadataName);
System\ComponentModel\Composition\Primitives\PrimitivesServices.cs (6)
14
return part.Metadata.
GetValue
<bool>(CompositionConstants.IsGenericPartMetadataName);
33
string? genericContractName = import.Metadata.
GetValue
<string>(CompositionConstants.GenericContractMetadataName);
34
int[]? importParametersOrder = import.Metadata.
GetValue
<int[]>(CompositionConstants.GenericImportParametersOrderMetadataName);
37
int partArity = part.Metadata.
GetValue
<int>(CompositionConstants.GenericPartArityMetadataName);
72
int[]? importParametersOrder = contractBasedImport.Metadata.
GetValue
<int[]>(CompositionConstants.GenericImportParametersOrderMetadataName);
78
int partArity = part.Metadata.
GetValue
<int>(CompositionConstants.GenericPartArityMetadataName);
System\ComponentModel\Composition\ReflectionModel\GenericSpecializationPartCreationInfo.cs (7)
405
string contractName = Translate(reflectionExport.ContractName, reflectionExport.Metadata.
GetValue
<int[]>(CompositionConstants.GenericExportParametersOrderMetadataName));
440
int[]? importParametersOrder = originalImport.Metadata.
GetValue
<int[]>(CompositionConstants.GenericImportParametersOrderMetadataName);
462
string? exportTypeIdentity = originalExport.Metadata.
GetValue
<string>(CompositionConstants.ExportTypeIdentityMetadataName);
465
metadata[CompositionConstants.ExportTypeIdentityMetadataName] = Translate(exportTypeIdentity, originalExport.Metadata.
GetValue
<int[]>(CompositionConstants.GenericExportParametersOrderMetadataName));
549
int partArity = partMetadata.
GetValue
<int>(CompositionConstants.GenericPartArityMetadataName);
556
object[]? genericParameterConstraints = partMetadata.
GetValue
<object[]>(CompositionConstants.GenericParameterConstraintsMetadataName);
557
GenericParameterAttributes[]? genericParameterAttributes = partMetadata.
GetValue
<GenericParameterAttributes[]>(CompositionConstants.GenericParameterAttributesMetadataName);
System\ComponentModel\Composition\ReflectionModel\ReflectionComposablePartDefinition.cs (2)
150
var genericParameters = (definition.Metadata.Count > 0) ? definition.Metadata.
GetValue
<IEnumerable<object>>(CompositionConstants.GenericParametersMetadataName) : null;
269
var genericParametersOrder = export.Metadata.
GetValue
<int[]>(CompositionConstants.GenericExportParametersOrderMetadataName);