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)
368CodeContext cc = (CodeContext)_codeContexts.Peek(); 1153CodeContext cc = (CodeContext)_codeContexts.Peek(); 1773CodeContext cc = (CodeContext)_codeContexts.Peek(); 2201((CodeContext)_codeContexts.Peek()).ElementType.FullName, 2209CodeContext cc = (CodeContext)_codeContexts.Peek(); 3078CodeContext ccParent = (CodeContext)_codeContexts.Peek(); 3173Debug.Assert(_ccRoot == (_codeContexts.Peek() as CodeContextRoot)); 3198Debug.Assert(_ccRoot == (_codeContexts.Peek() as CodeContextRoot));
src\Microsoft.DotNet.Wpf\src\PresentationFramework\System\Windows\Markup\TemplateXamlParser.cs (3)
1358xamlClrEventNode.ListenerType = (Type) _elementTypeStack.Peek(); 1486_IDTypes[xamlPropertyNode.Value] = _elementTypeStack.Peek() as Type; 1535Type t = (Type)_elementTypeStack.Peek();
src\Microsoft.DotNet.Wpf\src\PresentationFramework\System\Windows\Markup\XamlReaderHelper.cs (5)
3800TextFlowStackData textFlowData3 = (TextFlowStackData)_textFlowStack.Peek(); 3809TextFlowStackData textFlowData1 = (TextFlowStackData)_textFlowStack.Peek(); 3815TextFlowStackData textFlowData2 = (TextFlowStackData)_textFlowStack.Peek(); 4392TextFlowStackData textFlowData = (TextFlowStackData)_textFlowStack.Peek(); 6432TextFlowStackData textFlowData = (TextFlowStackData)_textFlowStack.Peek();
PresentationCore (1)
System\Windows\Input\InputManager.cs (1)
573input = _stagingArea.Peek();
PresentationFramework (3)
MS\Internal\Documents\UndoManager.cs (1)
265if (RedoStack.Count == 0 || (IParentUndoUnit)RedoStack.Peek() != unit)
MS\Internal\IO\Packaging\XamlFilter.cs (1)
932return (ContentDescriptor) _contextStack.Peek();
System\Windows\Markup\BamlRecordReader.cs (1)
2950INameScope 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)
197if (_threadStack == null || _threadStack.Count == 0 || _threadStack.Peek() != this) 388return (CacheRequest)_threadStack.Peek();