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