13 references to StringComparers
System.ComponentModel.Composition (13)
System\ComponentModel\Composition\Hosting\CompositionServices.cs (4)
187
var dictionary = new Dictionary<string, object?>(
StringComparers
.MetadataKeyNames);
196
if (reservedMetadataNames.Contains(partMetadata.Name,
StringComparers
.MetadataKeyNames)
267
if (reservedMetadataNames.Contains(provider.Name,
StringComparers
.MetadataKeyNames))
301
if (reservedMetadataNames.Contains(pi.Name,
StringComparers
.MetadataKeyNames))
System\ComponentModel\Composition\Hosting\ScopingExtensions.cs (3)
26
if (
StringComparers
.ContractName.Equals(contractName, export.ContractName))
49
if (
StringComparers
.ContractName.Equals(contractName, import.ContractName))
74
if (
StringComparers
.ContractName.Equals(contractName, import.ContractName) && (import.Cardinality == importCardinality))
System\ComponentModel\Composition\Hosting\TypeCatalog.cs (1)
318
Dictionary<string, List<ComposablePartDefinition>> index = new Dictionary<string, List<ComposablePartDefinition>>(
StringComparers
.ContractName);
System\ComponentModel\Composition\Primitives\ContractBasedImportDefinition.cs (2)
299
if (!
StringComparers
.ContractName.Equals(ContractName, exportDefinition.ContractName))
313
if (!
StringComparers
.ContractName.Equals(RequiredTypeIdentity, exportTypeIdentity))
System\ComponentModel\Composition\ReflectionModel\GenericSpecializationPartCreationInfo.cs (3)
100
var originalMetadata = new Dictionary<string, object?>(_originalPartCreationInfo.GetMetadata()!,
StringComparers
.MetadataKeyNames);
443
Dictionary<string, object?> metadata = new Dictionary<string, object?>(originalImport.Metadata,
StringComparers
.MetadataKeyNames);
460
Dictionary<string, object?> metadata = new Dictionary<string, object?>(originalExport.Metadata,
StringComparers
.MetadataKeyNames);