7 types derived from SortedSet
GenerateDocumentationAndConfigFiles (1)
src\roslyn\src\RoslynAnalyzers\Utilities\Compiler\PooledObjects\PooledSortedSet.cs (1)
20internal sealed class PooledSortedSet<T> : SortedSet<T>, IDisposable
Microsoft.CodeAnalysis.Analyzers (1)
src\roslyn\src\RoslynAnalyzers\Utilities\Compiler\PooledObjects\PooledSortedSet.cs (1)
20internal sealed class PooledSortedSet<T> : SortedSet<T>, IDisposable
Microsoft.CodeAnalysis.AnalyzerUtilities (1)
src\roslyn\src\RoslynAnalyzers\Utilities\Compiler\PooledObjects\PooledSortedSet.cs (1)
20internal sealed class PooledSortedSet<T> : SortedSet<T>, IDisposable
Microsoft.CodeAnalysis.ResxSourceGenerator (1)
src\roslyn\src\RoslynAnalyzers\Utilities\Compiler\PooledObjects\PooledSortedSet.cs (1)
20internal sealed class PooledSortedSet<T> : SortedSet<T>, IDisposable
Roslyn.Diagnostics.Analyzers (1)
src\roslyn\src\RoslynAnalyzers\Utilities\Compiler\PooledObjects\PooledSortedSet.cs (1)
20internal sealed class PooledSortedSet<T> : SortedSet<T>, IDisposable
System.Collections (2)
System\Collections\Generic\SortedDictionary.cs (1)
879public sealed class TreeSet<T> : SortedSet<T>
System\Collections\Generic\SortedSet.TreeSubSet.cs (1)
15internal sealed class TreeSubSet : SortedSet<T>, ISerializable, IDeserializationCallback
93 instantiations of SortedSet
Aspire.Hosting.RemoteHost (1)
AssemblyLoader.cs (1)
68var assemblyNames = new SortedSet<string>(StringComparer.OrdinalIgnoreCase);
ConfigurationSchemaGenerator (1)
RuntimeSource\Configuration.Binder\Specs\BindingHelperInfo.cs (1)
34private readonly SortedSet<string> _namespaces = new()
dotnet-svcutil-lib (1)
Shared\MSBuildProj.cs (1)
57private SortedSet<ProjectDependency> _dependencies = new SortedSet<ProjectDependency>();
GenerateDocumentationAndConfigFiles (1)
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\FlowAnalysis\CustomDataFlowAnalysis.cs (1)
78var toVisit = new SortedSet<int>();
ILCompiler.Compiler (33)
Compiler\DependencyAnalysis\InterfaceDispatchCellInfoSectionNode.cs (1)
32foreach (InterfaceDispatchCellNode node in new SortedSet<InterfaceDispatchCellNode>(factory.MetadataManager.GetInterfaceDispatchCells(), new DispatchCellComparer()))
Compiler\MetadataManager.cs (19)
66private readonly SortedSet<NonGCStaticsNode> _cctorContextsGenerated = new SortedSet<NonGCStaticsNode>(CompilerComparer.Instance); 67private readonly SortedSet<MetadataType> _typesWithGCStaticsGenerated = new SortedSet<MetadataType>(CompilerComparer.Instance); 68private readonly SortedSet<MetadataType> _typesWithNonGCStaticsGenerated = new SortedSet<MetadataType>(CompilerComparer.Instance); 69private readonly SortedSet<MetadataType> _typesWithThreadStaticsGenerated = new SortedSet<MetadataType>(CompilerComparer.Instance); 70private readonly SortedSet<TypeDesc> _typesWithEETypesGenerated = new SortedSet<TypeDesc>(TypeSystemComparer.Instance); 71private readonly SortedSet<TypeDesc> _typesWithConstructedEETypesGenerated = new SortedSet<TypeDesc>(TypeSystemComparer.Instance); 72private readonly SortedSet<MethodDesc> _methodsGenerated = new SortedSet<MethodDesc>(TypeSystemComparer.Instance); 73private readonly SortedSet<MethodDesc> _reflectableMethods = new SortedSet<MethodDesc>(TypeSystemComparer.Instance); 74private readonly SortedSet<GenericDictionaryNode> _genericDictionariesGenerated = new SortedSet<GenericDictionaryNode>(CompilerComparer.Instance); 75private readonly SortedSet<IMethodBodyNode> _methodBodiesGenerated = new SortedSet<IMethodBodyNode>(CompilerComparer.Instance); 76private readonly SortedSet<FrozenObjectNode> _frozenObjects = new SortedSet<FrozenObjectNode>(CompilerComparer.Instance); 78= new SortedSet<TypeGVMEntriesNode>(Comparer<TypeGVMEntriesNode>.Create((a, b) => TypeSystemComparer.Instance.Compare(a.AssociatedType, b.AssociatedType))); 79private readonly SortedSet<DefType> _typesWithDelegateMarshalling = new SortedSet<DefType>(TypeSystemComparer.Instance); 80private readonly SortedSet<DefType> _typesWithStructMarshalling = new SortedSet<DefType>(TypeSystemComparer.Instance); 82private readonly SortedSet<TypeDesc> _typeTemplates = new SortedSet<TypeDesc>(TypeSystemComparer.Instance); 83private readonly SortedSet<MetadataType> _typesWithGenericStaticBaseInfo = new SortedSet<MetadataType>(TypeSystemComparer.Instance); 84private readonly SortedSet<MethodDesc> _genericMethodHashtableEntries = new SortedSet<MethodDesc>(TypeSystemComparer.Instance); 85private readonly SortedSet<MethodDesc> _exactMethodHashtableEntries = new SortedSet<MethodDesc>(TypeSystemComparer.Instance); 1065var allTypes = new SortedSet<MetadataType>(CompilerComparer.Instance);
Compiler\UsageBasedMetadataManager.cs (1)
53private readonly SortedSet<ModuleDesc> _modulesWithMetadata = new SortedSet<ModuleDesc>(CompilerComparer.Instance);
Compiler\UsageBasedTypeMapManager.cs (6)
62private readonly SortedSet<IExternalTypeMapNode> _externalTypeMaps = new SortedSet<IExternalTypeMapNode>(CompilerComparer.Instance); 63private readonly SortedSet<IProxyTypeMapNode> _proxyTypeMaps = new SortedSet<IProxyTypeMapNode>(CompilerComparer.Instance); 107SortedSet<TypeDesc> generatedMaps = new(TypeSystemComparer.Instance); 113SortedSet<TypeDesc> emptyMapsToGenerate = new SortedSet<TypeDesc>(_requestedExternalTypeMaps, TypeSystemComparer.Instance); 126SortedSet<TypeDesc> generatedMaps = new(TypeSystemComparer.Instance); 132SortedSet<TypeDesc> emptyMapsToGenerate = new SortedSet<TypeDesc>(_requestedProxyTypeMaps, TypeSystemComparer.Instance);
src\runtime\src\coreclr\tools\Common\Compiler\InstructionSetSupport.cs (4)
238_supportedInstructionSets = new SortedSet<string>(); 239_unsupportedInstructionSets = new SortedSet<string>(); 245_supportedInstructionSets = new SortedSet<string>(other._supportedInstructionSets); 246_unsupportedInstructionSets = new SortedSet<string>(other._unsupportedInstructionSets);
src\runtime\src\coreclr\tools\Common\Compiler\ObjectWriter\ObjectWriter.cs (1)
310SortedSet<Utf8String> undefinedSymbolSet = new SortedSet<Utf8String>();
src\runtime\src\coreclr\tools\Common\Compiler\ObjectWriter\StringTableBuilder.cs (1)
18private readonly SortedSet<Utf8String> _reservedStrings = new();
ILCompiler.ReadyToRun (6)
src\runtime\src\coreclr\tools\Common\Compiler\InstructionSetSupport.cs (4)
238_supportedInstructionSets = new SortedSet<string>(); 239_unsupportedInstructionSets = new SortedSet<string>(); 245_supportedInstructionSets = new SortedSet<string>(other._supportedInstructionSets); 246_unsupportedInstructionSets = new SortedSet<string>(other._unsupportedInstructionSets);
src\runtime\src\coreclr\tools\Common\Compiler\ObjectWriter\ObjectWriter.cs (1)
310SortedSet<Utf8String> undefinedSymbolSet = new SortedSet<Utf8String>();
src\runtime\src\coreclr\tools\Common\Compiler\ObjectWriter\StringTableBuilder.cs (1)
18private readonly SortedSet<Utf8String> _reservedStrings = new();
Microsoft.AspNetCore.HttpLogging (2)
W3CLoggerOptions.cs (2)
115public ISet<string> AdditionalRequestHeaders { get; } = new SortedSet<string>(StringComparer.OrdinalIgnoreCase); 128var clonedSet = new SortedSet<string>(options.AdditionalRequestHeaders, StringComparer.InvariantCultureIgnoreCase);
Microsoft.AspNetCore.Mvc.Core (1)
Infrastructure\ActionSelectionTable.cs (1)
113var routeKeys = new SortedSet<string>(StringComparer.OrdinalIgnoreCase);
Microsoft.Build (2)
Evaluation\Expander.cs (1)
2667SortedSet<string> directories = new SortedSet<string>(StringComparer.OrdinalIgnoreCase);
Graph\ProjectGraph.cs (1)
757var seenTargets = new SortedSet<string>(StringComparer.OrdinalIgnoreCase);
Microsoft.CodeAnalysis.Analyzers (4)
MetaAnalyzers\DiagnosticAnalyzerAPIUsageAnalyzer.cs (2)
118var violatingTypeNamesBuilder = new SortedSet<string>(); 119var violatingUsedTypeNamesBuilder = new SortedSet<string>();
MetaAnalyzers\Fixers\AnalyzerReleaseTrackingFix.FixAllProvider.cs (1)
132var entriesToAdd = new SortedSet<string>();
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\FlowAnalysis\CustomDataFlowAnalysis.cs (1)
78var toVisit = new SortedSet<int>();
Microsoft.CodeAnalysis.AnalyzerUtilities (1)
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\FlowAnalysis\CustomDataFlowAnalysis.cs (1)
78var toVisit = new SortedSet<int>();
Microsoft.CodeAnalysis.CodeStyle (1)
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\FlowAnalysis\CustomDataFlowAnalysis.cs (1)
78var toVisit = new SortedSet<int>();
Microsoft.CodeAnalysis.Features (1)
Options\EditorConfig\EditorConfigFileGenerator.cs (1)
66var uniqueEntries = new SortedSet<string>();
Microsoft.CodeAnalysis.ResxSourceGenerator (1)
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\FlowAnalysis\CustomDataFlowAnalysis.cs (1)
78var toVisit = new SortedSet<int>();
Microsoft.CodeAnalysis.Workspaces (1)
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\FlowAnalysis\CustomDataFlowAnalysis.cs (1)
78var toVisit = new SortedSet<int>();
Microsoft.DotNet.Build.Tasks.Packaging (1)
ApplyBaseLine.cs (1)
67baseLineVersions[baseLinePackage.ItemSpec] = versions = new SortedSet<Version>();
Microsoft.DotNet.XliffTasks (1)
Tasks\EnsureAllResourcesTranslated.cs (1)
26SortedSet<string> untranslatedResourceSet = new(StringComparer.Ordinal);
Microsoft.ML.AutoML (1)
Sweepers\SmacSweeper.cs (1)
391SortedSet<RunResult> bestK = new SortedSet<RunResult>();
Microsoft.ML.Sweeper (3)
Algorithms\KdoSweeper.cs (2)
105_alreadySeenConfigs = new SortedSet<float[]>(new FloatArrayComparer()); 428SortedSet<RunResult> bestK = new SortedSet<RunResult>();
Algorithms\SmacSweeper.cs (1)
382SortedSet<RunResult> bestK = new SortedSet<RunResult>();
Microsoft.VisualStudio.TestPlatform.ObjectModel (1)
Nuget.Frameworks\NuGetFramework.cs (1)
487private static readonly SortedSet<string> PackagesBased = new(
NuGet.Commands (6)
RestoreCommand\RestoreRequest.cs (2)
136public ISet<string> RequestedRuntimes { get; } = new SortedSet<string>(StringComparer.Ordinal); 143public ISet<string> FallbackRuntimes { get; } = new SortedSet<string>(StringComparer.Ordinal);
RestoreCommand\Utility\BuildAssetsUtils.cs (1)
785var allLanguages = new SortedSet<string>(StringComparer.OrdinalIgnoreCase);
RestoreCommand\Utility\MSBuildRestoreUtility.cs (1)
598var result = new SortedSet<string>(values, StringComparer.Ordinal);
Utility\MSBuildProjectFrameworkUtility.cs (1)
138var frameworks = new SortedSet<string>(StringComparer.OrdinalIgnoreCase);
Utility\RequestRuntimeUtility.cs (1)
24var runtimes = new SortedSet<string>(StringComparer.Ordinal);
NuGet.Frameworks (1)
NuGetFramework.cs (1)
488private static readonly SortedSet<string> PackagesBased = new SortedSet<string>(
NuGet.Packaging (3)
PackageCreation\Authoring\PackageBuilder.cs (3)
352SortedSet<string> filesWithoutExtensions = new(); 970var extensions = new SortedSet<string>(StringComparer.OrdinalIgnoreCase); 974foreach (IPackageFile file in new SortedSet<IPackageFile>(Files, new NormalizedPathComparer()))
NuGet.ProjectModel (2)
DependencyGraphSpec.cs (2)
29private readonly SortedSet<string> _restore = new(PathUtility.GetStringComparerBasedOnOS()); 173var added = new SortedSet<string>(PathUtility.GetStringComparerBasedOnOS());
NuGet.Resolver (3)
ResolverInputSort.cs (3)
39var dependencies = grouped.Select(group => new SortedSet<string>( 49var parentsForId = new SortedSet<string>(StringComparer.OrdinalIgnoreCase); 64var childrenOfLastId = new SortedSet<string>(StringComparer.OrdinalIgnoreCase);
PresentationBuildTasks (1)
src\wpf\src\Microsoft.DotNet.Wpf\src\Shared\MS\Internal\Xaml\Parser\SpecialBracketCharacters.cs (1)
23private static readonly ISet<char> _restrictedCharSet = new SortedSet<char>((new char[] { '=', ',', '\'', '"', '{', '}', '\\' }));
PresentationFramework (1)
src\wpf\src\Microsoft.DotNet.Wpf\src\Shared\MS\Internal\Xaml\Parser\SpecialBracketCharacters.cs (1)
23private static readonly ISet<char> _restrictedCharSet = new SortedSet<char>((new char[] { '=', ',', '\'', '"', '{', '}', '\\' }));
Roslyn.Diagnostics.Analyzers (1)
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\FlowAnalysis\CustomDataFlowAnalysis.cs (1)
78var toVisit = new SortedSet<int>();
System.CodeDom (2)
Microsoft\CSharp\CSharpCodeGenerator.cs (1)
2442var importList = new SortedSet<string>(StringComparer.Ordinal);
Microsoft\VisualBasic\VBCodeGenerator.cs (1)
2233var importList = new SortedSet<string>(StringComparer.OrdinalIgnoreCase);
System.Collections (1)
System\Collections\Generic\SortedSet.cs (1)
855SortedSet<T> dummy = new SortedSet<T>(asSorted, comparer);
System.Collections.Immutable (6)
System\Collections\Immutable\ImmutableArray_1.Builder.cs (1)
628var indicesToRemove = new SortedSet<int>();
System\Collections\Immutable\ImmutableArray_1.cs (2)
695var indicesToRemove = new SortedSet<int>(); 995var indicesToRemove = new SortedSet<int>();
System\Collections\Immutable\ImmutableSortedSet_1.cs (3)
421var otherSet = new SortedSet<T>(other, this.KeyComparer); 452var otherSet = new SortedSet<T>(other, this.KeyComparer); 529var otherSet = new SortedSet<T>(other, this.KeyComparer);
System.IO.Packaging (1)
System\IO\Packaging\ZipPackage.cs (1)
177SortedSet<ZipPackagePartPiece> pieceSet = new SortedSet<ZipPackagePartPiece>();
System.Xaml (1)
src\wpf\src\Microsoft.DotNet.Wpf\src\Shared\MS\Internal\Xaml\Parser\SpecialBracketCharacters.cs (1)
23private static readonly ISet<char> _restrictedCharSet = new SortedSet<char>((new char[] { '=', ',', '\'', '"', '{', '}', '\\' }));
183 references to SortedSet
Aspire.Hosting.RemoteHost (1)
AssemblyLoader.cs (1)
68var assemblyNames = new SortedSet<string>(StringComparer.OrdinalIgnoreCase);
ConfigurationSchemaGenerator (1)
RuntimeSource\Configuration.Binder\Specs\BindingHelperInfo.cs (1)
34private readonly SortedSet<string> _namespaces = new()
dotnet-svcutil-lib (1)
Shared\MSBuildProj.cs (1)
57private SortedSet<ProjectDependency> _dependencies = new SortedSet<ProjectDependency>();
GenerateDocumentationAndConfigFiles (3)
src\roslyn\src\RoslynAnalyzers\Utilities\Compiler\PooledObjects\PooledSortedSet.cs (1)
17/// Pooled <see cref="SortedSet{T}"/>.
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\FlowAnalysis\CustomDataFlowAnalysis.cs (2)
73SortedSet<int> outOfRangeBlocksToVisit, 78var toVisit = new SortedSet<int>();
ILCompiler.Compiler (36)
Compiler\MetadataManager.cs (19)
66private readonly SortedSet<NonGCStaticsNode> _cctorContextsGenerated = new SortedSet<NonGCStaticsNode>(CompilerComparer.Instance); 67private readonly SortedSet<MetadataType> _typesWithGCStaticsGenerated = new SortedSet<MetadataType>(CompilerComparer.Instance); 68private readonly SortedSet<MetadataType> _typesWithNonGCStaticsGenerated = new SortedSet<MetadataType>(CompilerComparer.Instance); 69private readonly SortedSet<MetadataType> _typesWithThreadStaticsGenerated = new SortedSet<MetadataType>(CompilerComparer.Instance); 70private readonly SortedSet<TypeDesc> _typesWithEETypesGenerated = new SortedSet<TypeDesc>(TypeSystemComparer.Instance); 71private readonly SortedSet<TypeDesc> _typesWithConstructedEETypesGenerated = new SortedSet<TypeDesc>(TypeSystemComparer.Instance); 72private readonly SortedSet<MethodDesc> _methodsGenerated = new SortedSet<MethodDesc>(TypeSystemComparer.Instance); 73private readonly SortedSet<MethodDesc> _reflectableMethods = new SortedSet<MethodDesc>(TypeSystemComparer.Instance); 74private readonly SortedSet<GenericDictionaryNode> _genericDictionariesGenerated = new SortedSet<GenericDictionaryNode>(CompilerComparer.Instance); 75private readonly SortedSet<IMethodBodyNode> _methodBodiesGenerated = new SortedSet<IMethodBodyNode>(CompilerComparer.Instance); 76private readonly SortedSet<FrozenObjectNode> _frozenObjects = new SortedSet<FrozenObjectNode>(CompilerComparer.Instance); 77private readonly SortedSet<TypeGVMEntriesNode> _typeGVMEntries 79private readonly SortedSet<DefType> _typesWithDelegateMarshalling = new SortedSet<DefType>(TypeSystemComparer.Instance); 80private readonly SortedSet<DefType> _typesWithStructMarshalling = new SortedSet<DefType>(TypeSystemComparer.Instance); 82private readonly SortedSet<TypeDesc> _typeTemplates = new SortedSet<TypeDesc>(TypeSystemComparer.Instance); 83private readonly SortedSet<MetadataType> _typesWithGenericStaticBaseInfo = new SortedSet<MetadataType>(TypeSystemComparer.Instance); 84private readonly SortedSet<MethodDesc> _genericMethodHashtableEntries = new SortedSet<MethodDesc>(TypeSystemComparer.Instance); 85private readonly SortedSet<MethodDesc> _exactMethodHashtableEntries = new SortedSet<MethodDesc>(TypeSystemComparer.Instance); 1065var allTypes = new SortedSet<MetadataType>(CompilerComparer.Instance);
Compiler\UsageBasedMetadataManager.cs (1)
53private readonly SortedSet<ModuleDesc> _modulesWithMetadata = new SortedSet<ModuleDesc>(CompilerComparer.Instance);
Compiler\UsageBasedTypeMapManager.cs (6)
62private readonly SortedSet<IExternalTypeMapNode> _externalTypeMaps = new SortedSet<IExternalTypeMapNode>(CompilerComparer.Instance); 63private readonly SortedSet<IProxyTypeMapNode> _proxyTypeMaps = new SortedSet<IProxyTypeMapNode>(CompilerComparer.Instance); 107SortedSet<TypeDesc> generatedMaps = new(TypeSystemComparer.Instance); 113SortedSet<TypeDesc> emptyMapsToGenerate = new SortedSet<TypeDesc>(_requestedExternalTypeMaps, TypeSystemComparer.Instance); 126SortedSet<TypeDesc> generatedMaps = new(TypeSystemComparer.Instance); 132SortedSet<TypeDesc> emptyMapsToGenerate = new SortedSet<TypeDesc>(_requestedProxyTypeMaps, TypeSystemComparer.Instance);
src\runtime\src\coreclr\tools\Common\Compiler\InstructionSetSupport.cs (2)
230private readonly SortedSet<string> _supportedInstructionSets; 231private readonly SortedSet<string> _unsupportedInstructionSets;
src\runtime\src\coreclr\tools\Common\Compiler\ObjectWriter\CoffObjectWriter.cs (1)
219SortedSet<Utf8String> undefinedSymbols)
src\runtime\src\coreclr\tools\Common\Compiler\ObjectWriter\ElfObjectWriter.cs (1)
274SortedSet<Utf8String> undefinedSymbols)
src\runtime\src\coreclr\tools\Common\Compiler\ObjectWriter\MachObjectWriter.cs (1)
522SortedSet<Utf8String> undefinedSymbols)
src\runtime\src\coreclr\tools\Common\Compiler\ObjectWriter\ObjectWriter.cs (3)
282SortedSet<Utf8String> undefinedSymbols); 308private SortedSet<Utf8String> GetUndefinedSymbols() 310SortedSet<Utf8String> undefinedSymbolSet = new SortedSet<Utf8String>();
src\runtime\src\coreclr\tools\Common\Compiler\ObjectWriter\PEObjectWriter.cs (1)
373private protected override void EmitSymbolTable(IDictionary<Utf8String, SymbolDefinition> definedSymbols, SortedSet<Utf8String> undefinedSymbols)
src\runtime\src\coreclr\tools\Common\Compiler\ObjectWriter\StringTableBuilder.cs (1)
18private readonly SortedSet<Utf8String> _reservedStrings = new();
ILCompiler.ReadyToRun (11)
src\runtime\src\coreclr\tools\Common\Compiler\InstructionSetSupport.cs (2)
230private readonly SortedSet<string> _supportedInstructionSets; 231private readonly SortedSet<string> _unsupportedInstructionSets;
src\runtime\src\coreclr\tools\Common\Compiler\ObjectWriter\CoffObjectWriter.cs (1)
219SortedSet<Utf8String> undefinedSymbols)
src\runtime\src\coreclr\tools\Common\Compiler\ObjectWriter\ElfObjectWriter.cs (1)
274SortedSet<Utf8String> undefinedSymbols)
src\runtime\src\coreclr\tools\Common\Compiler\ObjectWriter\MachObjectWriter.cs (1)
522SortedSet<Utf8String> undefinedSymbols)
src\runtime\src\coreclr\tools\Common\Compiler\ObjectWriter\ObjectWriter.cs (3)
282SortedSet<Utf8String> undefinedSymbols); 308private SortedSet<Utf8String> GetUndefinedSymbols() 310SortedSet<Utf8String> undefinedSymbolSet = new SortedSet<Utf8String>();
src\runtime\src\coreclr\tools\Common\Compiler\ObjectWriter\PEObjectWriter.cs (1)
373private protected override void EmitSymbolTable(IDictionary<Utf8String, SymbolDefinition> definedSymbols, SortedSet<Utf8String> undefinedSymbols)
src\runtime\src\coreclr\tools\Common\Compiler\ObjectWriter\StringTableBuilder.cs (1)
18private readonly SortedSet<Utf8String> _reservedStrings = new();
src\runtime\src\coreclr\tools\Common\Compiler\ObjectWriter\WasmObjectWriter.cs (1)
1083private protected override void EmitSymbolTable(IDictionary<Utf8String, SymbolDefinition> definedSymbols, SortedSet<Utf8String> undefinedSymbols)
Microsoft.AspNetCore.HttpLogging (1)
W3CLoggerOptions.cs (1)
128var clonedSet = new SortedSet<string>(options.AdditionalRequestHeaders, StringComparer.InvariantCultureIgnoreCase);
Microsoft.AspNetCore.Mvc.Core (1)
Infrastructure\ActionSelectionTable.cs (1)
113var routeKeys = new SortedSet<string>(StringComparer.OrdinalIgnoreCase);
Microsoft.Build (2)
Evaluation\Expander.cs (1)
2667SortedSet<string> directories = new SortedSet<string>(StringComparer.OrdinalIgnoreCase);
Graph\ProjectGraph.cs (1)
757var seenTargets = new SortedSet<string>(StringComparer.OrdinalIgnoreCase);
Microsoft.CodeAnalysis.Analyzers (14)
MetaAnalyzers\DiagnosticAnalyzerAPIUsageAnalyzer.cs (2)
118var violatingTypeNamesBuilder = new SortedSet<string>(); 119var violatingUsedTypeNamesBuilder = new SortedSet<string>();
MetaAnalyzers\Fixers\AnalyzerReleaseTrackingFix.cs (8)
183SortedSet<string> entriesToAdd, 207SortedSet<string>? entriesToAdd, 220SortedSet<string>? newRuleEntriesToAdd = null; 221SortedSet<string>? changedRuleEntriesToAdd = null; 251SortedSet<string>? newRuleEntriesToAdd, 252SortedSet<string>? changedRuleEntriesToAdd, 377var entriesToAdd = currentTableKind.Value == RuleEntryTableKind.New ? newRuleEntriesToAdd : changedRuleEntriesToAdd; 464static bool AddAllEntries(SortedSet<string>? entriesToAdd, StringBuilder builder, bool prependNewLine)
MetaAnalyzers\Fixers\AnalyzerReleaseTrackingFix.FixAllProvider.cs (1)
132var entriesToAdd = new SortedSet<string>();
src\roslyn\src\RoslynAnalyzers\Utilities\Compiler\PooledObjects\PooledSortedSet.cs (1)
17/// Pooled <see cref="SortedSet{T}"/>.
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\FlowAnalysis\CustomDataFlowAnalysis.cs (2)
73SortedSet<int> outOfRangeBlocksToVisit, 78var toVisit = new SortedSet<int>();
Microsoft.CodeAnalysis.AnalyzerUtilities (3)
src\roslyn\src\RoslynAnalyzers\Utilities\Compiler\PooledObjects\PooledSortedSet.cs (1)
17/// Pooled <see cref="SortedSet{T}"/>.
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\FlowAnalysis\CustomDataFlowAnalysis.cs (2)
73SortedSet<int> outOfRangeBlocksToVisit, 78var toVisit = new SortedSet<int>();
Microsoft.CodeAnalysis.CodeStyle (2)
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\FlowAnalysis\CustomDataFlowAnalysis.cs (2)
73SortedSet<int> outOfRangeBlocksToVisit, 78var toVisit = new SortedSet<int>();
Microsoft.CodeAnalysis.CSharp.CodeStyle (1)
src\roslyn\src\Analyzers\CSharp\Analyzers\UseCollectionExpression\CSharpUseCollectionExpressionForFluentDiagnosticAnalyzer.cs (1)
50nameof(SortedSet<>),
Microsoft.CodeAnalysis.CSharp.Features (1)
src\roslyn\src\Analyzers\CSharp\Analyzers\UseCollectionExpression\CSharpUseCollectionExpressionForFluentDiagnosticAnalyzer.cs (1)
50nameof(SortedSet<>),
Microsoft.CodeAnalysis.Features (1)
Options\EditorConfig\EditorConfigFileGenerator.cs (1)
66var uniqueEntries = new SortedSet<string>();
Microsoft.CodeAnalysis.ResxSourceGenerator (3)
src\roslyn\src\RoslynAnalyzers\Utilities\Compiler\PooledObjects\PooledSortedSet.cs (1)
17/// Pooled <see cref="SortedSet{T}"/>.
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\FlowAnalysis\CustomDataFlowAnalysis.cs (2)
73SortedSet<int> outOfRangeBlocksToVisit, 78var toVisit = new SortedSet<int>();
Microsoft.CodeAnalysis.Workspaces (2)
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\FlowAnalysis\CustomDataFlowAnalysis.cs (2)
73SortedSet<int> outOfRangeBlocksToVisit, 78var toVisit = new SortedSet<int>();
Microsoft.DotNet.Build.Tasks.Packaging (4)
ApplyBaseLine.cs (4)
61Dictionary<string, SortedSet<Version>> baseLineVersions = new Dictionary<string, SortedSet<Version>>(); 64SortedSet<Version> versions = null; 78SortedSet<Version> dependencyBaseLineVersions = null;
Microsoft.DotNet.XliffTasks (1)
Tasks\EnsureAllResourcesTranslated.cs (1)
26SortedSet<string> untranslatedResourceSet = new(StringComparer.Ordinal);
Microsoft.ML.AutoML (1)
Sweepers\SmacSweeper.cs (1)
391SortedSet<RunResult> bestK = new SortedSet<RunResult>();
Microsoft.ML.Core (1)
Utilities\Utils.cs (1)
102public static int Size<T>(SortedSet<T> x)
Microsoft.ML.Sweeper (3)
Algorithms\KdoSweeper.cs (2)
85private readonly SortedSet<float[]> _alreadySeenConfigs; 428SortedSet<RunResult> bestK = new SortedSet<RunResult>();
Algorithms\SmacSweeper.cs (1)
382SortedSet<RunResult> bestK = new SortedSet<RunResult>();
Microsoft.VisualStudio.TestPlatform.ObjectModel (1)
Nuget.Frameworks\NuGetFramework.cs (1)
487private static readonly SortedSet<string> PackagesBased = new(
netstandard (1)
netstandard.cs (1)
132[assembly: System.Runtime.CompilerServices.TypeForwardedTo(typeof(System.Collections.Generic.SortedSet<>))]
NuGet.Commands (5)
RestoreCommand\Utility\BuildAssetsUtils.cs (2)
739private static IEnumerable<string> GetLanguageConditions(string language, SortedSet<string> allLanguages) 785var allLanguages = new SortedSet<string>(StringComparer.OrdinalIgnoreCase);
RestoreCommand\Utility\MSBuildRestoreUtility.cs (1)
598var result = new SortedSet<string>(values, StringComparer.Ordinal);
Utility\MSBuildProjectFrameworkUtility.cs (1)
138var frameworks = new SortedSet<string>(StringComparer.OrdinalIgnoreCase);
Utility\RequestRuntimeUtility.cs (1)
24var runtimes = new SortedSet<string>(StringComparer.Ordinal);
NuGet.Frameworks (1)
NuGetFramework.cs (1)
488private static readonly SortedSet<string> PackagesBased = new SortedSet<string>(
NuGet.Packaging (7)
PackageCreation\Authoring\PackageBuilder.cs (7)
352SortedSet<string> filesWithoutExtensions = new(); 353var extensions = WriteFiles(package, filesWithoutExtensions); 968private SortedSet<string> WriteFiles(ZipArchive package, SortedSet<string> filesWithoutExtensions) 970var extensions = new SortedSet<string>(StringComparer.OrdinalIgnoreCase); 1211private void WriteOpcContentTypes(ZipArchive package, SortedSet<string> extensions, SortedSet<string> filesWithoutExtensions)
NuGet.ProjectModel (2)
DependencyGraphSpec.cs (2)
29private readonly SortedSet<string> _restore = new(PathUtility.GetStringComparerBasedOnOS()); 173var added = new SortedSet<string>(PathUtility.GetStringComparerBasedOnOS());
NuGet.Resolver (4)
ResolverInputSort.cs (4)
45var parents = new Dictionary<string, SortedSet<string>>(StringComparer.OrdinalIgnoreCase); 49var parentsForId = new SortedSet<string>(StringComparer.OrdinalIgnoreCase); 64var childrenOfLastId = new SortedSet<string>(StringComparer.OrdinalIgnoreCase); 89foreach ((var childId, var parentIds) in parents)
Roslyn.Diagnostics.Analyzers (3)
src\roslyn\src\RoslynAnalyzers\Utilities\Compiler\PooledObjects\PooledSortedSet.cs (1)
17/// Pooled <see cref="SortedSet{T}"/>.
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\FlowAnalysis\CustomDataFlowAnalysis.cs (2)
73SortedSet<int> outOfRangeBlocksToVisit, 78var toVisit = new SortedSet<int>();
System (1)
src\runtime\src\libraries\shims\System\ref\System.cs (1)
140[assembly: System.Runtime.CompilerServices.TypeForwardedTo(typeof(System.Collections.Generic.SortedSet<>))]
System.CodeDom (2)
Microsoft\CSharp\CSharpCodeGenerator.cs (1)
2442var importList = new SortedSet<string>(StringComparer.Ordinal);
Microsoft\VisualBasic\VBCodeGenerator.cs (1)
2233var importList = new SortedSet<string>(StringComparer.OrdinalIgnoreCase);
System.Collections (51)
System\Collections\Generic\SortedSet.cs (40)
35internal delegate bool TreeWalkPredicate<T>(SortedSet<T>.Node node); 91SortedSet<T>? sortedSet = collection as SortedSet<T>; 772public static IEqualityComparer<SortedSet<T>> CreateSetComparer() => CreateSetComparer(memberEqualityComparer: null); 777public static IEqualityComparer<SortedSet<T>> CreateSetComparer(IEqualityComparer<T>? memberEqualityComparer) 789internal static bool SortedSetEquals(SortedSet<T>? set1, SortedSet<T>? set2, IComparer<T> comparer) 829/// Determines whether two <see cref="SortedSet{T}"/> instances have the same comparer. 831/// <param name="other">The other <see cref="SortedSet{T}"/>.</param> 833private bool HasEqualComparer(SortedSet<T> other) 847SortedSet<T>? asSorted = other as SortedSet<T>; 855SortedSet<T> dummy = new SortedSet<T>(asSorted, comparer); 996SortedSet<T>? asSorted = other as SortedSet<T>; 1078SortedSet<T>? asSorted = other as SortedSet<T>; 1119SortedSet<T>? asSorted = other as SortedSet<T>; 1134private void SymmetricExceptWithSameComparer(SortedSet<T> other) 1179SortedSet<T>? asSorted = other as SortedSet<T>; 1194private bool IsSubsetOfSortedSetWithSameComparer(SortedSet<T> asSorted) 1196SortedSet<T> prunedOther = asSorted.GetViewBetween(Min, Max); 1216SortedSet<T>? asSorted = other as SortedSet<T>; 1238SortedSet<T>? asSorted = other as SortedSet<T>; 1243SortedSet<T> pruned = GetViewBetween(asSorted.Min, asSorted.Max); 1267SortedSet<T>? asSorted = other as SortedSet<T>; 1272SortedSet<T> pruned = GetViewBetween(asSorted.Min, asSorted.Max); 1292SortedSet<T>? asSorted = other as SortedSet<T>; 1326SortedSet<T>? asSorted = other as SortedSet<T>; 1508public virtual SortedSet<T> GetViewBetween(T? lowerValue, T? upperValue) 1831private readonly SortedSet<T> _tree; 1839internal Enumerator(SortedSet<T> set) 1844internal Enumerator(SortedSet<T> set, bool reverse)
System\Collections\Generic\SortedSet.TreeSubSet.cs (5)
17private readonly SortedSet<T> _underlying; 38public TreeSubSet(SortedSet<T> Underlying, T? Min, T? Max, bool lowerBoundActive, bool upperBoundActive) 196Stack<Node> stack = new Stack<Node>(2 * (int)SortedSet<T>.Log2(count + 1)); // this is not exactly right if count is out of date, but the stack can grow 276internal override SortedSet<T>.Node? FindNode(T item) 342public override SortedSet<T> GetViewBetween(T? lowerValue, T? upperValue)
System\Collections\Generic\SortedSetEqualityComparer.cs (6)
9/// A comparer for two <see cref="SortedSet{T}"/>. 11internal sealed class SortedSetEqualityComparer<T> : IEqualityComparer<SortedSet<T>> 31public bool Equals(SortedSet<T>? x, SortedSet<T>? y) => SortedSet<T>.SortedSetEquals(x, y, _comparer); 34public int GetHashCode(SortedSet<T> obj)
System.Collections.Immutable (9)
System\Collections\Frozen\FrozenSetInternalBase.cs (1)
164SortedSet<T> sortedSet => _thisSet.Comparer.Equals(sortedSet.Comparer),
System\Collections\Immutable\ImmutableArray_1.Builder.cs (1)
628var indicesToRemove = new SortedSet<int>();
System\Collections\Immutable\ImmutableArray_1.cs (2)
695var indicesToRemove = new SortedSet<int>(); 995var indicesToRemove = new SortedSet<int>();
System\Collections\Immutable\ImmutableSortedSet_1.cs (5)
396case SortedSet<T> otherAsSortedSet: 421var otherSet = new SortedSet<T>(other, this.KeyComparer); 452var otherSet = new SortedSet<T>(other, this.KeyComparer); 529var otherSet = new SortedSet<T>(other, this.KeyComparer); 1132private static bool SetEqualsWithSortedSet(SortedSet<T> other, ImmutableSortedSet<T> source)
System.IO.Packaging (2)
System\IO\Packaging\ZipPackage.cs (2)
177SortedSet<ZipPackagePartPiece> pieceSet = new SortedSet<ZipPackagePartPiece>(); 564private void ProcessPieces(SortedSet<ZipPackagePartPiece> pieceSet, List<PackagePart> parts)