2 overrides of Peek
System.Collections.NonGeneric (1)
System\Collections\Stack.cs (1)
304public override object? Peek()
System.Diagnostics.TraceSource (1)
System\Diagnostics\CorrelationManager.cs (1)
69public override object? Peek() => _stack.Value?.Value;
33 references to Peek
dotnet-svcutil-lib (8)
FrameworkFork\Microsoft.Xml\Xml\schema\XsdBuilder.cs (1)
851get { return (XmlSchemaObject)_containerStack.Peek(); }
FrameworkFork\Microsoft.Xml\Xml\Serialization\CodeGenerator.cs (7)
553_ilGen.Emit(OpCodes.Leave, (Label)_leaveLabels.Peek()); 2074IfState ifState = (IfState)_blockStack.Peek(); 2095IfState ifState = (IfState)_blockStack.Peek(); 2362WhileState whileState = (WhileState)_whileStack.Peek(); 2368WhileState whileState = (WhileState)_whileStack.Peek(); 2374WhileState whileState = (WhileState)_whileStack.Peek(); 2384WhileState whileState = (WhileState)_whileStack.Peek();
PresentationBuildTasks (16)
MS\Internal\MarkupCompiler\MarkupCompiler.cs (8)
367CodeContext cc = (CodeContext)_codeContexts.Peek(); 1151CodeContext cc = (CodeContext)_codeContexts.Peek(); 1771CodeContext cc = (CodeContext)_codeContexts.Peek(); 2199((CodeContext)_codeContexts.Peek()).ElementType.FullName, 2207CodeContext cc = (CodeContext)_codeContexts.Peek(); 3076CodeContext ccParent = (CodeContext)_codeContexts.Peek(); 3170Debug.Assert(_ccRoot == (_codeContexts.Peek() as CodeContextRoot)); 3195Debug.Assert(_ccRoot == (_codeContexts.Peek() as CodeContextRoot));
src\Microsoft.DotNet.Wpf\src\PresentationFramework\System\Windows\Markup\TemplateXamlParser.cs (3)
1357xamlClrEventNode.ListenerType = (Type) _elementTypeStack.Peek(); 1485_IDTypes[xamlPropertyNode.Value] = _elementTypeStack.Peek() as Type; 1534Type t = (Type)_elementTypeStack.Peek();
src\Microsoft.DotNet.Wpf\src\PresentationFramework\System\Windows\Markup\XamlReaderHelper.cs (5)
3799TextFlowStackData textFlowData3 = (TextFlowStackData)_textFlowStack.Peek(); 3808TextFlowStackData textFlowData1 = (TextFlowStackData)_textFlowStack.Peek(); 3814TextFlowStackData textFlowData2 = (TextFlowStackData)_textFlowStack.Peek(); 4391TextFlowStackData textFlowData = (TextFlowStackData)_textFlowStack.Peek(); 6430TextFlowStackData textFlowData = (TextFlowStackData)_textFlowStack.Peek();
PresentationCore (1)
System\Windows\Input\InputManager.cs (1)
569input = _stagingArea.Peek();
PresentationFramework (3)
MS\Internal\Documents\UndoManager.cs (1)
264if (RedoStack.Count == 0 || (IParentUndoUnit)RedoStack.Peek() != unit)
MS\Internal\IO\Packaging\XamlFilter.cs (1)
931return (ContentDescriptor) _contextStack.Peek();
System\Windows\Markup\BamlRecordReader.cs (1)
2946INameScope nameScopePeek = ParserContext.NameScopeStack.Peek() as INameScope;
System.Collections.NonGeneric (1)
System\Collections\Stack.cs (1)
308return _s.Peek();
System.Configuration.ConfigurationManager (2)
System\Configuration\ConfigurationElement.cs (2)
1015section = _configRecord.SectionsStack.Peek() as ConfigurationSection; 1060section = _configRecord.SectionsStack.Peek() as ConfigurationSection;
UIAutomationClient (2)
System\Windows\Automation\CacheRequest.cs (2)
196if (_threadStack == null || _threadStack.Count == 0 || _threadStack.Peek() != this) 387return (CacheRequest)_threadStack.Peek();