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