3 instantiations of KeyCollection
Microsoft.AspNetCore.Http.Extensions.Tests (2)
ProblemDetailsDefaultWriterTest.cs (2)
88Assert.Equal(result.Keys, new(new() { { "type", 0 }, { "title", 1 }, { "status", 2 }, { "detail", 3 }, { "instance", 4 }, { "extensionKey", 5 }, { "traceId", expectedTraceId } })); 120Assert.Equal(result.Keys, new(new() { { "type", 0 }, { "title", 1 }, { "status", 2 }, { "detail", 3 }, { "instance", 4 }, { "errors", 5 }, { "traceId", expectedTraceId } }));
System.Private.CoreLib (1)
src\libraries\System.Private.CoreLib\src\System\Collections\Generic\Dictionary.cs (1)
216public KeyCollection Keys => _keys ??= new KeyCollection(this);
60 references to KeyCollection
GenerateDocumentationAndConfigFiles (3)
src\Compilers\Core\Portable\Collections\OrderPreservingMultiDictionary.cs (1)
178public Dictionary<K, ValueSet>.KeyCollection Keys
src\Compilers\Core\Portable\InternalUtilities\MultiDictionary.cs (1)
214public Dictionary<K, ValueSet>.KeyCollection Keys => _dictionary.Keys;
src\Dependencies\Collections\Extensions\ICollectionExtensions.cs (1)
67public static void AddRange<TKey, TValue>(this ICollection<TKey> collection, Dictionary<TKey, TValue>.KeyCollection? keyCollection) where TKey : notnull
Metrics (3)
src\Compilers\Core\Portable\Collections\OrderPreservingMultiDictionary.cs (1)
178public Dictionary<K, ValueSet>.KeyCollection Keys
src\Compilers\Core\Portable\InternalUtilities\MultiDictionary.cs (1)
214public Dictionary<K, ValueSet>.KeyCollection Keys => _dictionary.Keys;
src\Dependencies\Collections\Extensions\ICollectionExtensions.cs (1)
67public static void AddRange<TKey, TValue>(this ICollection<TKey> collection, Dictionary<TKey, TValue>.KeyCollection? keyCollection) where TKey : notnull
Metrics.Legacy (3)
src\Compilers\Core\Portable\Collections\OrderPreservingMultiDictionary.cs (1)
178public Dictionary<K, ValueSet>.KeyCollection Keys
src\Compilers\Core\Portable\InternalUtilities\MultiDictionary.cs (1)
214public Dictionary<K, ValueSet>.KeyCollection Keys => _dictionary.Keys;
src\Dependencies\Collections\Extensions\ICollectionExtensions.cs (1)
67public static void AddRange<TKey, TValue>(this ICollection<TKey> collection, Dictionary<TKey, TValue>.KeyCollection? keyCollection) where TKey : notnull
Microsoft.AspNetCore.Http (1)
src\Shared\CopyOnWriteDictionary\CopyOnWriteDictionaryHolder.cs (1)
72public Dictionary<TKey, TValue>.KeyCollection Keys
Microsoft.AspNetCore.Mvc.Core (1)
src\Shared\CopyOnWriteDictionary\CopyOnWriteDictionaryHolder.cs (1)
72public Dictionary<TKey, TValue>.KeyCollection Keys
Microsoft.AspNetCore.Razor.Runtime (1)
src\Shared\CopyOnWriteDictionary\CopyOnWriteDictionaryHolder.cs (1)
72public Dictionary<TKey, TValue>.KeyCollection Keys
Microsoft.AspNetCore.Shared.Tests (1)
src\Shared\CopyOnWriteDictionary\CopyOnWriteDictionaryHolder.cs (1)
72public Dictionary<TKey, TValue>.KeyCollection Keys
Microsoft.CodeAnalysis (3)
Collections\OrderPreservingMultiDictionary.cs (1)
178public Dictionary<K, ValueSet>.KeyCollection Keys
InternalUtilities\MultiDictionary.cs (1)
214public Dictionary<K, ValueSet>.KeyCollection Keys => _dictionary.Keys;
src\Dependencies\Collections\Extensions\ICollectionExtensions.cs (1)
67public static void AddRange<TKey, TValue>(this ICollection<TKey> collection, Dictionary<TKey, TValue>.KeyCollection? keyCollection) where TKey : notnull
Microsoft.CodeAnalysis.Analyzers (3)
src\Compilers\Core\Portable\Collections\OrderPreservingMultiDictionary.cs (1)
178public Dictionary<K, ValueSet>.KeyCollection Keys
src\Compilers\Core\Portable\InternalUtilities\MultiDictionary.cs (1)
214public Dictionary<K, ValueSet>.KeyCollection Keys => _dictionary.Keys;
src\Dependencies\Collections\Extensions\ICollectionExtensions.cs (1)
67public static void AddRange<TKey, TValue>(this ICollection<TKey> collection, Dictionary<TKey, TValue>.KeyCollection? keyCollection) where TKey : notnull
Microsoft.CodeAnalysis.AnalyzerUtilities (3)
src\Compilers\Core\Portable\Collections\OrderPreservingMultiDictionary.cs (1)
178public Dictionary<K, ValueSet>.KeyCollection Keys
src\Compilers\Core\Portable\InternalUtilities\MultiDictionary.cs (1)
214public Dictionary<K, ValueSet>.KeyCollection Keys => _dictionary.Keys;
src\Dependencies\Collections\Extensions\ICollectionExtensions.cs (1)
67public static void AddRange<TKey, TValue>(this ICollection<TKey> collection, Dictionary<TKey, TValue>.KeyCollection? keyCollection) where TKey : notnull
Microsoft.CodeAnalysis.BannedApiAnalyzers (3)
src\Compilers\Core\Portable\Collections\OrderPreservingMultiDictionary.cs (1)
178public Dictionary<K, ValueSet>.KeyCollection Keys
src\Compilers\Core\Portable\InternalUtilities\MultiDictionary.cs (1)
214public Dictionary<K, ValueSet>.KeyCollection Keys => _dictionary.Keys;
src\Dependencies\Collections\Extensions\ICollectionExtensions.cs (1)
67public static void AddRange<TKey, TValue>(this ICollection<TKey> collection, Dictionary<TKey, TValue>.KeyCollection? keyCollection) where TKey : notnull
Microsoft.CodeAnalysis.CodeStyle (3)
src\Compilers\Core\Portable\Collections\OrderPreservingMultiDictionary.cs (1)
178public Dictionary<K, ValueSet>.KeyCollection Keys
src\Compilers\Core\Portable\InternalUtilities\MultiDictionary.cs (1)
214public Dictionary<K, ValueSet>.KeyCollection Keys => _dictionary.Keys;
src\Dependencies\Collections\Extensions\ICollectionExtensions.cs (1)
67public static void AddRange<TKey, TValue>(this ICollection<TKey> collection, Dictionary<TKey, TValue>.KeyCollection? keyCollection) where TKey : notnull
Microsoft.CodeAnalysis.Collections.Package (1)
Extensions\ICollectionExtensions.cs (1)
67public static void AddRange<TKey, TValue>(this ICollection<TKey> collection, Dictionary<TKey, TValue>.KeyCollection? keyCollection) where TKey : notnull
Microsoft.CodeAnalysis.Extensions.Package (1)
src\Dependencies\Collections\Extensions\ICollectionExtensions.cs (1)
67public static void AddRange<TKey, TValue>(this ICollection<TKey> collection, Dictionary<TKey, TValue>.KeyCollection? keyCollection) where TKey : notnull
Microsoft.CodeAnalysis.InteractiveHost (1)
src\Dependencies\Collections\Extensions\ICollectionExtensions.cs (1)
67public static void AddRange<TKey, TValue>(this ICollection<TKey> collection, Dictionary<TKey, TValue>.KeyCollection? keyCollection) where TKey : notnull
Microsoft.CodeAnalysis.PerformanceSensitiveAnalyzers (3)
src\Compilers\Core\Portable\Collections\OrderPreservingMultiDictionary.cs (1)
178public Dictionary<K, ValueSet>.KeyCollection Keys
src\Compilers\Core\Portable\InternalUtilities\MultiDictionary.cs (1)
214public Dictionary<K, ValueSet>.KeyCollection Keys => _dictionary.Keys;
src\Dependencies\Collections\Extensions\ICollectionExtensions.cs (1)
67public static void AddRange<TKey, TValue>(this ICollection<TKey> collection, Dictionary<TKey, TValue>.KeyCollection? keyCollection) where TKey : notnull
Microsoft.CodeAnalysis.PublicApiAnalyzers (3)
src\Compilers\Core\Portable\Collections\OrderPreservingMultiDictionary.cs (1)
178public Dictionary<K, ValueSet>.KeyCollection Keys
src\Compilers\Core\Portable\InternalUtilities\MultiDictionary.cs (1)
214public Dictionary<K, ValueSet>.KeyCollection Keys => _dictionary.Keys;
src\Dependencies\Collections\Extensions\ICollectionExtensions.cs (1)
67public static void AddRange<TKey, TValue>(this ICollection<TKey> collection, Dictionary<TKey, TValue>.KeyCollection? keyCollection) where TKey : notnull
Microsoft.CodeAnalysis.ResxSourceGenerator (3)
src\Compilers\Core\Portable\Collections\OrderPreservingMultiDictionary.cs (1)
178public Dictionary<K, ValueSet>.KeyCollection Keys
src\Compilers\Core\Portable\InternalUtilities\MultiDictionary.cs (1)
214public Dictionary<K, ValueSet>.KeyCollection Keys => _dictionary.Keys;
src\Dependencies\Collections\Extensions\ICollectionExtensions.cs (1)
67public static void AddRange<TKey, TValue>(this ICollection<TKey> collection, Dictionary<TKey, TValue>.KeyCollection? keyCollection) where TKey : notnull
Microsoft.CodeAnalysis.Threading.Package (1)
src\Dependencies\Collections\Extensions\ICollectionExtensions.cs (1)
67public static void AddRange<TKey, TValue>(this ICollection<TKey> collection, Dictionary<TKey, TValue>.KeyCollection? keyCollection) where TKey : notnull
Microsoft.CodeAnalysis.Workspaces (3)
src\Compilers\Core\Portable\Collections\OrderPreservingMultiDictionary.cs (1)
178public Dictionary<K, ValueSet>.KeyCollection Keys
src\Compilers\Core\Portable\InternalUtilities\MultiDictionary.cs (1)
214public Dictionary<K, ValueSet>.KeyCollection Keys => _dictionary.Keys;
src\Dependencies\Collections\Extensions\ICollectionExtensions.cs (1)
67public static void AddRange<TKey, TValue>(this ICollection<TKey> collection, Dictionary<TKey, TValue>.KeyCollection? keyCollection) where TKey : notnull
Microsoft.CodeAnalysis.Workspaces.MSBuild.BuildHost (2)
src\Compilers\Core\Portable\InternalUtilities\MultiDictionary.cs (1)
214public Dictionary<K, ValueSet>.KeyCollection Keys => _dictionary.Keys;
src\Dependencies\Collections\Extensions\ICollectionExtensions.cs (1)
67public static void AddRange<TKey, TValue>(this ICollection<TKey> collection, Dictionary<TKey, TValue>.KeyCollection? keyCollection) where TKey : notnull
Roslyn.Diagnostics.Analyzers (3)
src\Compilers\Core\Portable\Collections\OrderPreservingMultiDictionary.cs (1)
178public Dictionary<K, ValueSet>.KeyCollection Keys
src\Compilers\Core\Portable\InternalUtilities\MultiDictionary.cs (1)
214public Dictionary<K, ValueSet>.KeyCollection Keys => _dictionary.Keys;
src\Dependencies\Collections\Extensions\ICollectionExtensions.cs (1)
67public static void AddRange<TKey, TValue>(this ICollection<TKey> collection, Dictionary<TKey, TValue>.KeyCollection? keyCollection) where TKey : notnull
System.Net.HttpListener (2)
System\Net\Managed\HttpListener.Managed.cs (2)
220Dictionary<HttpListenerContext, HttpListenerContext>.KeyCollection keys = _listenerContexts.Keys; 230Dictionary<HttpConnection, HttpConnection>.KeyCollection keys = _connections.Keys;
System.Private.CoreLib (2)
src\libraries\System.Private.CoreLib\src\System\Collections\Generic\Dictionary.cs (2)
36private KeyCollection? _keys; 216public KeyCollection Keys => _keys ??= new KeyCollection(this);
System.Runtime.Caching (1)
System\Runtime\Caching\MemoryCacheEntry.cs (1)
244Dictionary<MemoryCacheEntryChangeMonitor, MemoryCacheEntryChangeMonitor>.KeyCollection deps = null;
Test.Utilities (3)
src\Compilers\Core\Portable\Collections\OrderPreservingMultiDictionary.cs (1)
178public Dictionary<K, ValueSet>.KeyCollection Keys
src\Compilers\Core\Portable\InternalUtilities\MultiDictionary.cs (1)
214public Dictionary<K, ValueSet>.KeyCollection Keys => _dictionary.Keys;
src\Dependencies\Collections\Extensions\ICollectionExtensions.cs (1)
67public static void AddRange<TKey, TValue>(this ICollection<TKey> collection, Dictionary<TKey, TValue>.KeyCollection? keyCollection) where TKey : notnull
Text.Analyzers (3)
src\Compilers\Core\Portable\Collections\OrderPreservingMultiDictionary.cs (1)
178public Dictionary<K, ValueSet>.KeyCollection Keys
src\Compilers\Core\Portable\InternalUtilities\MultiDictionary.cs (1)
214public Dictionary<K, ValueSet>.KeyCollection Keys => _dictionary.Keys;
src\Dependencies\Collections\Extensions\ICollectionExtensions.cs (1)
67public static void AddRange<TKey, TValue>(this ICollection<TKey> collection, Dictionary<TKey, TValue>.KeyCollection? keyCollection) where TKey : notnull