1 override of Peek
mscorlib (1)
system\collections\stack.cs (1)
292public override Object Peek() {
68 references to Peek
mscorlib (2)
system\collections\stack.cs (1)
294return _s.Peek();
system\security\policy\evidence.cs (1)
1871return m_enumerators.Count > 0 ? m_enumerators.Peek() as IEnumerator : null;
PresentationBuildTasks (16)
BuildTasks\Ms\Internal\MarkupCompiler\MarkupCompiler.cs (8)
373CodeContext cc = (CodeContext)_codeContexts.Peek(); 1157CodeContext cc = (CodeContext)_codeContexts.Peek(); 1718CodeContext cc = (CodeContext)_codeContexts.Peek(); 2151((CodeContext)_codeContexts.Peek()).ElementType.FullName, 2159CodeContext cc = (CodeContext)_codeContexts.Peek(); 2962CodeContext ccParent = (CodeContext)_codeContexts.Peek(); 3057Debug.Assert(_ccRoot == (_codeContexts.Peek() as CodeContextRoot)); 3082Debug.Assert(_ccRoot == (_codeContexts.Peek() as CodeContextRoot));
Framework\System\Windows\Markup\TemplateXamlParser.cs (3)
1369xamlClrEventNode.ListenerType = (Type) _elementTypeStack.Peek(); 1497_IDTypes[xamlPropertyNode.Value] = _elementTypeStack.Peek() as Type; 1546Type t = (Type)_elementTypeStack.Peek();
Framework\System\Windows\Markup\XamlReaderHelper.cs (5)
3807TextFlowStackData textFlowData3 = (TextFlowStackData)_textFlowStack.Peek(); 3816TextFlowStackData textFlowData1 = (TextFlowStackData)_textFlowStack.Peek(); 3822TextFlowStackData textFlowData2 = (TextFlowStackData)_textFlowStack.Peek(); 4395TextFlowStackData textFlowData = (TextFlowStackData)_textFlowStack.Peek(); 6389TextFlowStackData textFlowData = (TextFlowStackData)_textFlowStack.Peek();
PresentationCore (1)
Core\CSharp\System\Windows\Input\InputManager.cs (1)
778input = _stagingArea.Peek();
PresentationFramework (9)
src\Framework\MS\Internal\Documents\UndoManager.cs (1)
297if (RedoStack.Count == 0 || (IParentUndoUnit)RedoStack.Peek() != unit)
src\Framework\MS\Internal\IO\Packaging\XamlFilter.cs (1)
964return (ContentDescriptor) _contextStack.Peek();
src\Framework\System\Windows\Markup\BamlReader.cs (6)
1535if ((bool)readFirstConstructor.Peek()) 1540if ((bool)readConstructor.Peek()) 1549if ((bool)readFirstConstructor.Peek()) 1553if ((bool)readConstructor.Peek()) 1600if ((bool)readFirstConstructor.Peek()) 1604if ((bool)readConstructor.Peek())
src\Framework\System\Windows\Markup\BamlRecordReader.cs (1)
3001INameScope nameScopePeek = ParserContext.NameScopeStack.Peek() as INameScope;
System.Configuration (2)
System\Configuration\ConfigurationElement.cs (2)
1122section = _configRecord.SectionsStack.Peek() as ConfigurationSection; 1169section = _configRecord.SectionsStack.Peek() as ConfigurationSection;
System.Data.SqlXml (4)
System\Xml\Xsl\XsltOld\Compiler.cs (4)
587Debug.Assert(this.stylesheet == this.stylesheets.Peek()); 589this.stylesheet = (Stylesheet) this.stylesheets.Peek(); 598Debug.Assert(this.stylesheet == this.stylesheets.Peek()); 607Debug.Assert(this.stylesheet == this.stylesheets.Peek());
System.Runtime.Remoting (4)
metadata\wsdlparser.cs (4)
772ParseReaderStreamLocation(reader, (ReaderStream)_currentReaderStack.Peek()); 945_currentSchemaReaderStack.Push(_currentReaderStack.Peek()); // put current wsdl location as xsd location 999ParseReaderStreamLocation(_readerStreamsXsd, (ReaderStream)_currentSchemaReaderStack.Peek()); 1004ParseReaderStreamLocation(reader, (ReaderStream)_currentSchemaReaderStack.Peek());
System.Runtime.Serialization (2)
System\Runtime\Serialization\CodeGenerator.cs (2)
1860object stackTop = blockStack.Peek(); 1871object stackTop = blockStack.Peek();
System.Web (13)
Compilation\BuildProvidersCompiler.cs (1)
510BuildProvider curnode = (BuildProvider)stack.Peek();
HttpContext.cs (1)
835return (IHttpHandler)_handlerStack.Peek();
UI\Html32TextWriter.cs (1)
333FontStackItem font = (FontStackItem)FontStack.Peek();
UI\Page.cs (1)
6351return _dataBindingContext.Peek();
UI\TemplateParser.cs (9)
1231BuilderStackEntry entry = (BuilderStackEntry) _builderStack.Peek(); 1328ControlBuilder builder = ((BuilderStackEntry) BuilderStack.Peek())._builder; 1491parentBuilder = ((BuilderStackEntry) _builderStack.Peek())._builder; 1512BuilderStackEntry stackEntry = (BuilderStackEntry) _builderStack.Peek(); 1608parentBuilder = ((BuilderStackEntry) _builderStack.Peek())._builder; 2568ControlBuilder builder = ((BuilderStackEntry) BuilderStack.Peek())._builder; 2652ControlBuilder parentBuilder = ((BuilderStackEntry)BuilderStack.Peek())._builder; 2787BuilderStackEntry stackEntry = (BuilderStackEntry) BuilderStack.Peek(); 2830AppendSubBuilder(((BuilderStackEntry) _builderStack.Peek())._builder, builder);
System.Web.Mobile (5)
UI\MobileControls\Adapters\HtmlMobileTextWriter.cs (1)
930return (WriterStyle)_stack.Peek();
UI\MobileControls\Adapters\WmlMobileTextWriter.cs (2)
1587return (WmlLayout)_layoutStack.Peek(); 1627return (WmlFormat)_formatStack.Peek();
UI\MobileControls\Adapters\XhtmlAdapters\XhtmlMobileTextWriter.cs (2)
102StylePair pair = (StylePair) _styleStack.Peek (); 199String.Compare(cssClass, (String)_physicalCssClasses.Peek(), StringComparison.Ordinal) != 0;
System.Xml (8)
System\Xml\Schema\XsdBuilder.cs (1)
809get { return (XmlSchemaObject)containerStack.Peek(); }
System\Xml\Serialization\CodeGenerator.cs (7)
528ilGen.Emit(OpCodes.Leave, (Label)leaveLabels.Peek()); 1985IfState ifState = (IfState)blockStack.Peek(); 2003IfState ifState = (IfState)blockStack.Peek(); 2261WhileState whileState = (WhileState)whileStack.Peek(); 2266WhileState whileState = (WhileState)whileStack.Peek(); 2271WhileState whileState = (WhileState)whileStack.Peek(); 2280WhileState whileState = (WhileState)whileStack.Peek();
UIAutomationClient (2)
System\Windows\Automation\CacheRequest.cs (2)
206if (_threadStack == null || _threadStack.Count == 0 || _threadStack.Peek() != this) 397return (CacheRequest)_threadStack.Peek();