46 references to Stack
dotnet-svcutil-lib (1)
FrameworkFork\System.ServiceModel\Internals\System\Runtime\InternalBufferManager.cs (1)
464_items = new Stack<byte[]>(limit);
illink (5)
Microsoft.Build (3)
BackEnd\Components\Scheduler\SchedulableRequest.cs (1)
525Stack<SchedulableRequest> requestsToEvaluate = new Stack<SchedulableRequest>(16);
BackEnd\Components\Scheduler\Scheduler.cs (1)
1686Stack<BuildRequest> requestsToAdd = new Stack<BuildRequest>(blocker.BuildRequests.Length);
Evaluation\Expander.cs (1)
2138Stack<TransformFunction<S>> transformFunctionStack = new Stack<TransformFunction<S>>(match.Captures.Count);
Microsoft.CodeAnalysis (6)
CodeGen\LocalScopeManager.cs (1)
31_scopes = new Stack<ScopeInfo>(1);
Collections\SmallDictionary.cs (3)
534_stack = new Stack<AvlNode>(dict.HeightApprox()); 652_stack = new Stack<AvlNode>(dict.HeightApprox()); 758_stack = new Stack<AvlNode>(dict.HeightApprox());
Syntax\SyntaxDiffer.cs (2)
19private readonly Stack<SyntaxNodeOrToken> _oldNodes = new Stack<SyntaxNodeOrToken>(InitialStackSize); 20private readonly Stack<SyntaxNodeOrToken> _newNodes = new Stack<SyntaxNodeOrToken>(InitialStackSize);
Microsoft.CodeAnalysis.CSharp.Syntax.UnitTests (1)
Parsing\ParsingTests.cs (1)
262var stack = new Stack<ChildSyntaxList.Enumerator>(24);
Microsoft.DotNet.VersionTools (1)
BuildManifest\VersionIdentifier.cs (1)
96Stack<(int versionNumber, int index)> majorMinorPatchStack = new Stack<(int,int)>(3);
Microsoft.Extensions.Identity.Core (1)
TokenProviderDescriptor.cs (1)
16private readonly Stack<Type> _providerTypes = new(1);
Microsoft.Maui.Controls (1)
Profiler.cs (1)
51 Stack = new Stack<Profile>(Capacity);
PresentationBuildTasks (1)
src\Microsoft.DotNet.Wpf\src\PresentationFramework\System\Windows\Markup\StyleModeStack.cs (1)
68private Stack<StyleMode> _stack = new Stack<StyleMode>(64);
PresentationCore (7)
MS\Internal\TextFormatting\TextStore.cs (1)
2688Stack<TextModifier> directionalEmbeddingStack = new Stack<TextModifier>(32);
System\Windows\EventRoute.cs (1)
306(_branchNodeStack ??= new Stack<BranchNode>(1)).Push(branchNode);
System\Windows\Media\BoundsDrawingContextWalker.cs (3)
344_clipStack = new Stack<Rect>(2); 398_transformStack = new Stack<Matrix>(2); 613_pushTypeStack = new Stack<PushType>(2);
System\Windows\Media\DrawingDrawingContext.cs (1)
1341_previousDrawingGroupStack = new Stack<DrawingGroup>(2);
System\Windows\Media\HitTestWithPointDrawingContextWalker.cs (1)
318_pointStack = new Stack<Point>(2);
PresentationFramework (5)
MS\Internal\Ink\EditingCoordinator.cs (1)
43_activationStack = new Stack<EditingBehavior>(2);
System\Windows\Documents\TextRangeBase.cs (2)
801listItemCounter = new Stack<int>(1); 832listItemCounter = new Stack<int>(1);
System\Windows\Markup\StyleModeStack.cs (1)
68private Stack<StyleMode> _stack = new Stack<StyleMode>(64);
System\Windows\TreeChangeInfo.cs (1)
204_inheritablePropertiesStack = new Stack<FrugalObjectList<DependencyProperty>>(1);
System.Collections (4)
System\Collections\Generic\SortedSet.cs (3)
194var stack = new Stack<Node>(2 * (int)Log2(Count + 1)); 1635var pendingNodes = new Stack<(Node source, Node target)>(2 * Log2(count) + 2); 1854_stack = new Stack<Node>(2 * (int)Log2(set.TotalCount() + 1));
System\Collections\Generic\SortedSet.TreeSubSet.cs (1)
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
System.Collections.Immutable (5)
System\Collections\Immutable\AllocFreeConcurrentStack.cs (1)
24t_stack ??= new Stack<RefAsValueType<T>>(MaxSize);
System\Collections\Immutable\ImmutableList_1.Enumerator.cs (1)
109_stack = SecureObjectPool<Stack<RefAsValueType<Node>>, Enumerator>.PrepNew(this, new Stack<RefAsValueType<Node>>(root.Height));
System\Collections\Immutable\ImmutableSortedDictionary_2.Enumerator.cs (1)
78_stack = SecureObjectPool<Stack<RefAsValueType<Node>>, Enumerator>.PrepNew(this, new Stack<RefAsValueType<Node>>(root.Height));
System\Collections\Immutable\ImmutableSortedSet_1.Enumerator.cs (1)
90_stack = SecureObjectPool<Stack<RefAsValueType<Node>>, Enumerator>.PrepNew(this, new Stack<RefAsValueType<Node>>(root.Height));
System\Collections\Immutable\SortedInt32KeyNode.Enumerator.cs (1)
64_stack = SecureObjectPool<Stack<RefAsValueType<SortedInt32KeyNode<TValue>>>, Enumerator>.PrepNew(this, new Stack<RefAsValueType<SortedInt32KeyNode<TValue>>>(root.Height));
System.Data.Common (2)
System\Data\XmlDataLoader.cs (2)
49_childRowsStack = new Stack<DataRow>(50); 77_childRowsStack = new Stack<DataRow>(50);
System.Private.Xml (2)
System\Xml\Xsl\Runtime\XmlQueryOutput.cs (1)
1542_stkNames ??= new Stack<string>(15);
System\Xml\Xsl\Runtime\XmlQueryRuntime.cs (1)
146_stkOutput = new Stack<XmlQueryOutput>(16);
System.Text.RegularExpressions (1)
System\Text\RegularExpressions\RegexCompiler.cs (1)
361_readOnlySpanCharLocalsPool ??= new Stack<LocalBuilder>(1), // capacity == 1 as we currently don't expect overlapping instances