2 types derived from Stack
InMemory.FunctionalTests (1)
Microsoft.AspNetCore.Server.Kestrel.Core.Tests (1)
449 instantiations of Stack
Aspire.Dashboard (1)
Aspire.Hosting (1)
Aspire.Hosting.Docker (1)
Aspire.Hosting.Kubernetes (1)
ConfigurationSchemaGenerator (1)
DemoConsole (2)
dotnet-svcutil-lib (11)
GenerateDocumentationAndConfigFiles (11)
Identity.DefaultUI.WebSite (1)
illink (15)
ILLink.Tasks (1)
InMemory.FunctionalTests (2)
Metrics (11)
Metrics.Legacy (11)
Microsoft.AspNetCore.App.Analyzers.Test (2)
Microsoft.AspNetCore.Authentication.JwtBearer.Tools.Tests (1)
Microsoft.AspNetCore.Components (2)
Microsoft.AspNetCore.Components.Endpoints (2)
Microsoft.AspNetCore.Components.Endpoints.Tests (1)
Microsoft.AspNetCore.Components.Server (2)
Microsoft.AspNetCore.Diagnostics (1)
Microsoft.AspNetCore.Diagnostics.EntityFrameworkCore (1)
Microsoft.AspNetCore.Hosting (1)
Microsoft.AspNetCore.Http.Extensions (1)
Microsoft.AspNetCore.Mvc.Core (1)
Microsoft.AspNetCore.Mvc.Razor (2)
Microsoft.AspNetCore.Routing (2)
Microsoft.AspNetCore.Server.IIS (3)
Microsoft.AspNetCore.Server.Kestrel.Core (3)
Microsoft.AspNetCore.Server.Kestrel.Core.Tests (1)
Microsoft.AspNetCore.Shared.Tests (1)
Microsoft.AspNetCore.SignalR.Client.Core (1)
Microsoft.AspNetCore.SignalR.Core (1)
Microsoft.Cci.Extensions (2)
Microsoft.CodeAnalysis (15)
Microsoft.CodeAnalysis.Analyzers (11)
Microsoft.CodeAnalysis.AnalyzerUtilities (12)
Microsoft.CodeAnalysis.BannedApiAnalyzers (11)
Microsoft.CodeAnalysis.CodeStyle (7)
Microsoft.CodeAnalysis.CSharp (9)
Microsoft.CodeAnalysis.CSharp.Features (3)
Microsoft.CodeAnalysis.CSharp.Scripting.UnitTests (1)
Microsoft.CodeAnalysis.CSharp.Semantic.UnitTests (1)
Microsoft.CodeAnalysis.CSharp.Symbol.UnitTests (1)
Microsoft.CodeAnalysis.CSharp.Syntax.UnitTests (1)
Microsoft.CodeAnalysis.EditorFeatures (2)
Microsoft.CodeAnalysis.EditorFeatures.UnitTests (3)
Microsoft.CodeAnalysis.Extensions.Package (1)
Microsoft.CodeAnalysis.Features (5)
Microsoft.CodeAnalysis.PerformanceSensitiveAnalyzers (11)
Microsoft.CodeAnalysis.PublicApiAnalyzers (11)
Microsoft.CodeAnalysis.ResxSourceGenerator (11)
Microsoft.CodeAnalysis.Test.Utilities (3)
Microsoft.CodeAnalysis.VisualBasic (2)
Microsoft.CodeAnalysis.Workspaces (12)
Microsoft.DotNet.Build.Manifest (1)
Microsoft.DotNet.PackageTesting (2)
Microsoft.DotNet.SharedFramework.Sdk (2)
Microsoft.DotNet.SwaggerGenerator.CodeGenerator (4)
Microsoft.Extensions.AI.Abstractions.Tests (1)
Microsoft.Extensions.AI.Evaluation.Console (1)
Microsoft.Extensions.Configuration (1)
Microsoft.Extensions.Configuration.Abstractions (1)
Microsoft.Extensions.Configuration.Json (1)
Microsoft.Extensions.Configuration.Xml (2)
Microsoft.Extensions.FileSystemGlobbing (1)
Microsoft.Extensions.Identity.Core (1)
Microsoft.Extensions.SecretManager.Tools.Tests (1)
Microsoft.Gen.ComplianceReports (1)
Microsoft.Gen.Logging (2)
Microsoft.Gen.MetadataExtractor (2)
Microsoft.Gen.Metrics (1)
Microsoft.Gen.MetricsReports (1)
Microsoft.Interop.SourceGeneration (3)
Microsoft.Maui.Controls (1)
Microsoft.Maui.Graphics (4)
Microsoft.Maui.Graphics.Text.Markdig (1)
Microsoft.ML.Core (1)
Microsoft.ML.Data (2)
Microsoft.ML.Tokenizers (2)
Microsoft.ML.Tokenizers.Tests (2)
Microsoft.ML.TorchSharp (1)
Microsoft.VisualStudio.LanguageServices (1)
PresentationBuildTasks (2)
PresentationCore (10)
PresentationFramework (24)
ReachFramework (2)
Roslyn.Diagnostics.Analyzers (11)
RunTests (1)
Shared.Tests (1)
Stress.ApiService (1)
System.CodeDom (1)
System.Collections (4)
System.Collections.Immutable (5)
System.ComponentModel.Composition (3)
System.Composition.Hosting (1)
System.Console (3)
System.Data.Common (2)
System.Formats.Asn1 (3)
System.Formats.Cbor (5)
System.Formats.Nrbf (1)
System.Formats.Tar (2)
System.Linq.Expressions (10)
System.Private.CoreLib.Generators (2)
System.Private.DataContractSerialization (2)
System.Private.Xml (22)
System.ServiceModel.Primitives (2)
System.Text.Json (2)
System.Text.RegularExpressions (7)
System.Text.RegularExpressions.Generator (2)
System.Windows.Controls.Ribbon (1)
System.Windows.Forms (4)
System.Windows.Forms.Design (4)
System.Xaml (8)
Test.Utilities (11)
Text.Analyzers (11)
xunit.console (1)
1353 references to Stack
Aspire.Dashboard (1)
Aspire.Hosting (2)
Aspire.Hosting.Docker (1)
Aspire.Hosting.Kubernetes (1)
ConfigurationSchemaGenerator (1)
DemoConsole (2)
dotnet-svcutil-lib (12)
GenerateDocumentationAndConfigFiles (55)
Identity.DefaultUI.WebSite (1)
illink (43)
Linker.Dataflow\MethodBodyScanner.cs (32)
61private void CheckForInvalidStack(Stack<StackSlot> stack, int depthRequired, MethodIL methodIL, int ilOffset)
72private static void PushUnknown(Stack<StackSlot> stack)
77private void PushUnknownAndWarnAboutInvalidIL(Stack<StackSlot> stack, MethodIL methodIL, int offset)
83private StackSlot PopUnknown(Stack<StackSlot> stack, int count, MethodIL methodIL, int ilOffset)
106private static Stack<StackSlot> MergeStack(Stack<StackSlot> a, Stack<StackSlot> b)
119Stack<StackSlot> newStack = new Stack<StackSlot>(a.Count);
120Stack<StackSlot>.Enumerator aEnum = a.GetEnumerator();
121Stack<StackSlot>.Enumerator bEnum = b.GetEnumerator();
131private static void ClearStack(ref Stack<StackSlot>? stack)
136private static void NewKnownStack(Dictionary<int, Stack<StackSlot>> knownStacks, int newOffset, Stack<StackSlot> newStack)
144if (knownStacks.TryGetValue(newOffset, out Stack<StackSlot>? value))
308Dictionary<int, Stack<StackSlot>> knownStacks = new Dictionary<int, Stack<StackSlot>>();
309Stack<StackSlot>? currentStack = new Stack<StackSlot>(methodBody.MaxStackSize);
319if (knownStacks.TryGetValue(operation.Offset, out Stack<StackSlot>? knownValue))
756private static void ScanExceptionInformation(Dictionary<int, Stack<StackSlot>> knownStacks, MethodIL methodIL)
760Stack<StackSlot> catchStack = new Stack<StackSlot>(1);
779private void ScanLdarg(Instruction operation, Stack<StackSlot> currentStack, MethodDefinition thisMethod)
801Stack<StackSlot> currentStack)
816Stack<StackSlot> currentStack,
840void ScanLdtoken(MethodIL methodIL, Instruction operation, Stack<StackSlot> currentStack)
898Stack<StackSlot> currentStack,
916Stack<StackSlot> currentStack,
982Stack<StackSlot> currentStack,
1035Stack<StackSlot> currentStack,
1080Stack<StackSlot> currentStack,
1185Stack<StackSlot> currentStack,
1249Stack<StackSlot> currentStack,
1280Stack<StackSlot> currentStack,
ILLink.Tasks (1)
InMemory.FunctionalTests (5)
src\Servers\Kestrel\shared\ConnectionCompletion.cs (3)
12public static Task FireOnCompletedAsync(ILogger logger, Stack<KeyValuePair<Func<object, Task>, object>>? onCompleted)
22private static Task CompleteAsyncMayAwait(ILogger logger, Stack<KeyValuePair<Func<object, Task>, object>> onCompleted)
43private static async Task CompleteAsyncAwaited(Task currentTask, ILogger logger, Stack<KeyValuePair<Func<object, Task>, object>> onCompleted)
Metrics (56)
Metrics.Legacy (56)
Microsoft.AspNetCore.App.Analyzers.Test (3)
Microsoft.AspNetCore.Authentication.JwtBearer.Tools.Tests (1)
Microsoft.AspNetCore.Components (2)
Microsoft.AspNetCore.Components.Endpoints (12)
Microsoft.AspNetCore.Components.Endpoints.Tests (3)
Binding\FormDataMapperTests.cs (3)
777var expected = new Stack<int>(new[] { 10, 11, 12, 13, 14, 15, 16, 17, 18, 19 });
778CanDeserialize_Collection<Stack<int>, Stack<int>, int>(expected);
Microsoft.AspNetCore.Components.Server (2)
Microsoft.AspNetCore.Diagnostics (1)
Microsoft.AspNetCore.Diagnostics.EntityFrameworkCore (1)
Microsoft.AspNetCore.Hosting (1)
Microsoft.AspNetCore.Http.Extensions (11)
Microsoft.AspNetCore.Mvc.Core (1)
Microsoft.AspNetCore.Mvc.Razor (2)
Microsoft.AspNetCore.Routing (3)
Microsoft.AspNetCore.Server.IIS (5)
Microsoft.AspNetCore.Server.Kestrel.Core (10)
Internal\Http\HttpProtocol.cs (6)
43private Stack<KeyValuePair<Func<object, Task>, object>>? _onStarting;
44private Stack<KeyValuePair<Func<object, Task>, object>>? _onCompleted;
812var onStarting = _onStarting;
820static async Task ProcessEvents(HttpProtocol protocol, Stack<KeyValuePair<Func<object, Task>, object>> events)
840var onCompleted = _onCompleted;
848static async Task ProcessEvents(HttpProtocol protocol, Stack<KeyValuePair<Func<object, Task>, object>> events)
Microsoft.AspNetCore.Server.Kestrel.Core.Tests (1)
Microsoft.AspNetCore.Server.Kestrel.Microbenchmarks (3)
src\Servers\Kestrel\shared\ConnectionCompletion.cs (3)
12public static Task FireOnCompletedAsync(ILogger logger, Stack<KeyValuePair<Func<object, Task>, object>>? onCompleted)
22private static Task CompleteAsyncMayAwait(ILogger logger, Stack<KeyValuePair<Func<object, Task>, object>> onCompleted)
43private static async Task CompleteAsyncAwaited(Task currentTask, ILogger logger, Stack<KeyValuePair<Func<object, Task>, object>> onCompleted)
Microsoft.AspNetCore.Server.Kestrel.Transport.Quic (3)
src\Servers\Kestrel\shared\ConnectionCompletion.cs (3)
12public static Task FireOnCompletedAsync(ILogger logger, Stack<KeyValuePair<Func<object, Task>, object>>? onCompleted)
22private static Task CompleteAsyncMayAwait(ILogger logger, Stack<KeyValuePair<Func<object, Task>, object>> onCompleted)
43private static async Task CompleteAsyncAwaited(Task currentTask, ILogger logger, Stack<KeyValuePair<Func<object, Task>, object>> onCompleted)
Microsoft.AspNetCore.Shared.Tests (1)
Microsoft.AspNetCore.SignalR.Client.Core (4)
Microsoft.AspNetCore.SignalR.Core (4)
Microsoft.Cci.Extensions (2)
Microsoft.CodeAnalysis (31)
Microsoft.CodeAnalysis.Analyzers (56)
Microsoft.CodeAnalysis.AnalyzerUtilities (57)
Microsoft.CodeAnalysis.BannedApiAnalyzers (56)
Microsoft.CodeAnalysis.CodeStyle (47)
Microsoft.CodeAnalysis.CSharp (13)
Microsoft.CodeAnalysis.CSharp.CodeStyle (6)
src\Analyzers\CSharp\Analyzers\UseCollectionExpression\CSharpUseCollectionExpressionForFluentDiagnosticAnalyzer.cs (1)
51nameof(Stack<>),
Microsoft.CodeAnalysis.CSharp.Features (10)
src\Analyzers\CSharp\Analyzers\UseCollectionExpression\CSharpUseCollectionExpressionForFluentDiagnosticAnalyzer.cs (1)
51nameof(Stack<>),
Microsoft.CodeAnalysis.CSharp.Scripting.UnitTests (1)
Microsoft.CodeAnalysis.CSharp.Semantic.UnitTests (7)
Microsoft.CodeAnalysis.CSharp.Symbol.UnitTests (1)
Microsoft.CodeAnalysis.CSharp.Syntax.UnitTests (1)
Microsoft.CodeAnalysis.CSharp.Workspaces (3)
Microsoft.CodeAnalysis.EditorFeatures (2)
Microsoft.CodeAnalysis.EditorFeatures.UnitTests (3)
Microsoft.CodeAnalysis.Extensions.Package (4)
Microsoft.CodeAnalysis.Features (13)
Microsoft.CodeAnalysis.LanguageServer.Protocol (2)
Microsoft.CodeAnalysis.PerformanceSensitiveAnalyzers (56)
Microsoft.CodeAnalysis.PublicApiAnalyzers (56)
Microsoft.CodeAnalysis.ResxSourceGenerator (56)
Microsoft.CodeAnalysis.Test.Utilities (4)
Microsoft.CodeAnalysis.VisualBasic (2)
Microsoft.CodeAnalysis.Workspaces (62)
Microsoft.CodeAnalysis.Workspaces.MSBuild.BuildHost (19)
Microsoft.DotNet.Build.Manifest (1)
Microsoft.DotNet.PackageTesting (4)
Microsoft.DotNet.SharedFramework.Sdk (4)
Microsoft.DotNet.SwaggerGenerator.CodeGenerator (8)
Microsoft.Extensions.AI.Abstractions.Tests (2)
Microsoft.Extensions.AI.Evaluation.Console (1)
Microsoft.Extensions.Configuration (1)
Microsoft.Extensions.Configuration.Abstractions (1)
Microsoft.Extensions.Configuration.Json (1)
Microsoft.Extensions.Configuration.Xml (2)
Microsoft.Extensions.FileSystemGlobbing (1)
Microsoft.Extensions.Identity.Core (1)
Microsoft.Extensions.SecretManager.Tools.Tests (1)
Microsoft.Gen.ComplianceReports (1)
Microsoft.Gen.Logging (2)
Microsoft.Gen.MetadataExtractor (2)
Microsoft.Gen.Metrics (1)
Microsoft.Gen.MetricsReports (1)
Microsoft.Interop.SourceGeneration (3)
Microsoft.Maui.Controls (1)
Microsoft.Maui.Graphics (4)
Microsoft.Maui.Graphics.Text.Markdig (1)
Microsoft.ML.Core (2)
Microsoft.ML.Data (2)
Microsoft.ML.Tokenizers (2)
Microsoft.ML.Tokenizers.Tests (2)
Microsoft.ML.TorchSharp (1)
Microsoft.VisualStudio.LanguageServices (1)
mscorlib (1)
netstandard (1)
PresentationBuildTasks (2)
PresentationCore (13)
PresentationCore.Tests (1)
PresentationFramework (36)
PresentationFramework.Tests (1)
ReachFramework (6)
Roslyn.Diagnostics.Analyzers (56)
Roslyn.Diagnostics.CSharp.Analyzers (3)
RunTests (1)
Shared.Tests (2)
Stress.ApiService (1)
System (1)
System.CodeDom (1)
System.Collections (9)
System.Collections.Immutable (41)
System\Collections\Immutable\ImmutableSortedDictionary_2.Enumerator.cs (8)
47private SecurePooledObject<Stack<RefAsValueType<Node>>>? _stack;
76if (!SecureObjectPool<Stack<RefAsValueType<Node>>, Enumerator>.TryTake(this, out _stack))
78_stack = SecureObjectPool<Stack<RefAsValueType<Node>>, Enumerator>.PrepNew(this, new Stack<RefAsValueType<Node>>(root.Height));
123if (_stack != null && _stack.TryUse(ref this, out Stack<RefAsValueType<Node>>? stack))
126SecureObjectPool<Stack<RefAsValueType<Node>>, Enumerator>.TryAdd(this, _stack!);
143Stack<RefAsValueType<ImmutableSortedDictionary<TKey, TValue>.Node>> stack = _stack.Use(ref this);
168Stack<RefAsValueType<ImmutableSortedDictionary<TKey, TValue>.Node>> stack = _stack.Use(ref this);
211Stack<RefAsValueType<ImmutableSortedDictionary<TKey, TValue>.Node>> stack = _stack.Use(ref this);
System.ComponentModel.Composition (12)
System.Composition.Hosting (4)
System.Console (5)
System.Data.Common (1)
System.Formats.Asn1 (3)
System.Formats.Cbor (5)
System.Formats.Nrbf (4)
System.Formats.Tar (6)
System.Linq.Expressions (13)
System.Private.CoreLib.Generators (2)
System.Private.DataContractSerialization (2)
System.Private.Windows.Core (1)
System.Private.Xml (22)
System.Resources.Extensions (1)
System.ServiceModel.Primitives (2)
System.Text.Json (6)
System.Text.Json.SourceGeneration (1)
System.Text.RegularExpressions (9)
System.Text.RegularExpressions.Generator (2)
System.Windows.Controls.Ribbon (1)
System.Windows.Forms (7)
System.Windows.Forms.Design (6)
System.Xaml (14)
Test.Utilities (55)
Text.Analyzers (56)
xunit.console (2)