114 references to Peek
PresentationBuildTasks (3)
Framework\System\Windows\Markup\MarkupExtensionParser.cs (2)
1061if (bracketCharacters.Match(bracketCharacterStack.Peek(), args[i])) 1111ThrowException(SRID.ParserMarkupExtensionMalformedBracketCharacers, bracketCharacterStack.Peek().ToString(), lineNumber, linePosition);
Framework\System\Windows\Markup\StyleModeStack.cs (1)
48return _stack.Peek();
PresentationCore (5)
Core\CSharp\System\Windows\EventRoute.cs (2)
372BranchNode branchNode = BranchNodeStack.Peek(); 399BranchNode branchNode = BranchNodeStack.Peek();
Core\CSharp\System\Windows\Media\Animation\Subtree.cs (3)
349TimelineGroup timelineGroup = _timelineStack.Peek() as TimelineGroup; 374timelineGroup = _timelineStack.Peek() as TimelineGroup; 408return _timelineStack.Peek();
PresentationFramework (17)
src\Framework\MS\Internal\Annotations\Anchoring\LocatorManager.cs (2)
1316return _calledProcessAnnotations.Peek(); 1320if (_calledProcessAnnotations.Peek() != value)
src\Framework\MS\Internal\Globalization\BamlResourceDeserializer.cs (2)
349_currentParent = _bamlTreeStack.Peek(); 390return stackForProperty.Peek();
src\Framework\MS\Internal\Ink\EditingCoordinator.cs (1)
1367EditingBehavior = _activationStack.Peek();
src\Framework\System\Windows\Application.cs (2)
494NestedBamlLoadInfo nestedBamlLoadInfo = s_NestedBamlLoadInfo.Peek(); 2667NestedBamlLoadInfo loadBamlSyncInfo = s_NestedBamlLoadInfo.Peek() as NestedBamlLoadInfo;
src\Framework\System\Windows\Controls\FlowDocumentScrollViewer.cs (1)
833DependencyObject branchNode = (branchNodeStack.Count > 0) ? branchNodeStack.Peek() : null;
src\Framework\System\Windows\Controls\SinglePageViewer.cs (1)
812DependencyObject branchNode = (branchNodeStack.Count > 0) ? branchNodeStack.Peek() : null;
src\Framework\System\Windows\Documents\XPSS0ValidatingLoader.cs (2)
102Hashtable validResources = (_validResources.Count > 0 ? _validResources.Peek() : null); 193Hashtable validResources = _validResources.Peek();
src\Framework\System\Windows\FrameworkContentElement.cs (1)
1422DependencyObject branchNode = branchNodeStack.Count > 0 ? branchNodeStack.Peek() : null;
src\Framework\System\Windows\FrameworkElement.cs (1)
3119DependencyObject branchNode = branchNodeStack.Count > 0 ? branchNodeStack.Peek() : null;
src\Framework\System\Windows\Markup\MarkupExtensionParser.cs (2)
1061if (bracketCharacters.Match(bracketCharacterStack.Peek(), args[i])) 1111ThrowException(SRID.ParserMarkupExtensionMalformedBracketCharacers, bracketCharacterStack.Peek().ToString(), lineNumber, linePosition);
src\Framework\System\Windows\Markup\StyleModeStack.cs (1)
48return _stack.Peek();
src\Framework\System\Windows\TreeWalkHelper.cs (1)
257FrugalObjectList<DependencyProperty> parentInheritableProperties = info.InheritablePropertiesStack.Peek();
System.Activities (18)
System\Activities\Debugger\DebugManager.cs (3)
447if (threadStack.Peek() == activity) 459Activity topActivity = threadStack.Peek(); 460if (!IsParallelActivity(topActivity) && IsAncestorOf(threadStack.Peek(), activity))
System\Activities\Debugger\StateManager.cs (1)
373this.LeaveState(this.callStack.Peek().State);
System\Activities\Debugger\XamlDebuggerXmlReader.cs (1)
471XamlNode currentStartObject = this.objectDeclarationRecords.Peek();
System\Activities\Debugger\XmlReaderWithSourceLocation.cs (1)
168if (this.contentStartLocationStack.Peek() == null)
System\Activities\XamlIntegration\ActivityBuilderXamlWriter.cs (4)
1053ObjectFrame currentFrame = this.objectStack.Peek(); 1064ObjectFrame currentFrame = this.objectStack.Peek(); 1071ObjectFrame currentFrame = this.objectStack.Peek(); 1109ObjectFrame currentFrame = this.objectStack.Count > 0 ? this.objectStack.Peek() : null;
System\Activities\XamlIntegration\DynamicActivityXamlReader.cs (2)
684Frame curFrame = this.stack.Peek(); 699WritePropertyReferenceFrameToParent(targetMember, ReadPropertyReferenceExtensionPropertyName(reader), this.stack.Peek(), lineInfo);
System\Activities\XamlIntegration\TextExpressionCompiler.cs (6)
349AddMember(delegateArgument.BoundArgument.Name, delegateArgument.BoundArgument.Type, this.compiledDataContexts.Peek()); 656CompiledDataContextDescriptor currentContextDescriptor = this.compiledDataContexts.Peek(); 1758baseTypeName = this.compiledDataContexts.Peek().CodeTypeDeclarationForReadOnly.Name; 1762baseTypeName = this.compiledDataContexts.Peek().CodeTypeDeclaration.Name; 2161return this.compiledDataContexts.Peek().NextMemberIndex; 2270CompiledDataContextDescriptor baseDescriptor = this.compiledDataContexts.Peek();
System.Activities.Presentation (13)
Microsoft.Tools.Common\Microsoft\Activities\Presentation\Xaml\ViewStateXamlHelper.cs (6)
138if (stack.Peek().AttachedPropertyNodes == null) 140stack.Peek().AttachedPropertyNodes = new XamlNodeList(inputReader.SchemaContext); 145XamlWriter attachedPropertyWriter = stack.Peek().AttachedPropertyNodes.Writer; 164stack.Peek().IdRef = idRef; 396stack.Peek().IdRef = null; 402stack.Peek().IdRef = idRef;
Microsoft.Tools.Common\Microsoft\Activities\Presentation\Xaml\XamlObjectReaderWithSequence.cs (1)
94object parent = this.objects.Peek();
System.Activities.Presentation\System\Activities\Presentation\Model\ModelTreeManager.cs (3)
653editingScope = (EditingScope)editingScopes.Peek(); 686EditingScope outerScope = editingScopes.Count > 0 ? (EditingScope)editingScopes.Peek() : null; 846return (modelEditingScopeImpl == editingScopes.Peek()) && (readOnlyState == null || !readOnlyState.IsReadOnly);
System.Activities.Presentation\System\Activities\Presentation\Xaml\ErrorTolerantObjectWriter.cs (3)
272get { return this.fragmentStack.Peek(); } 277get { return this.nameScopeStack.Peek(); } 453this.nameScopeStack.Push(new NameScopeFrame(this.nameScopeStack.Peek()));
System.Core (4)
Microsoft\Scripting\Actions\BindingRestrictions.cs (1)
170while (_tests.Count > 0 && _tests.Peek().Depth == depth) {
Microsoft\Scripting\Ast\DebugViewWriter.cs (1)
78return _stack.Count > 0 ? _stack.Peek() : 0;
Microsoft\Scripting\Compiler\VariableBinder.cs (2)
75_constants.Peek().AddReference(node.Value, node.Type); 151var currentScope = _scopes.Peek();
System.Data (13)
cdf\src\NetFx40\Tools\Microsoft.Tools.Common\Microsoft\Activities\Presentation\Xaml\ViewStateXamlHelper.cs (6)
138if (stack.Peek().AttachedPropertyNodes == null) 140stack.Peek().AttachedPropertyNodes = new XamlNodeList(inputReader.SchemaContext); 145XamlWriter attachedPropertyWriter = stack.Peek().AttachedPropertyNodes.Writer; 164stack.Peek().IdRef = idRef; 396stack.Peek().IdRef = null; 402stack.Peek().IdRef = idRef;
cdf\src\NetFx40\Tools\Microsoft.Tools.Common\Microsoft\Activities\Presentation\Xaml\XamlObjectReaderWithSequence.cs (1)
94object parent = this.objects.Peek();
cdf\src\NetFx40\Tools\System.Activities.Presentation\System\Activities\Presentation\Model\ModelTreeManager.cs (3)
653editingScope = (EditingScope)editingScopes.Peek(); 686EditingScope outerScope = editingScopes.Count > 0 ? (EditingScope)editingScopes.Peek() : null; 846return (modelEditingScopeImpl == editingScopes.Peek()) && (readOnlyState == null || !readOnlyState.IsReadOnly);
cdf\src\NetFx40\Tools\System.Activities.Presentation\System\Activities\Presentation\Xaml\ErrorTolerantObjectWriter.cs (3)
272get { return this.fragmentStack.Peek(); } 277get { return this.nameScopeStack.Peek(); } 453this.nameScopeStack.Push(new NameScopeFrame(this.nameScopeStack.Peek()));
System.Data.Entity (7)
System\Data\Objects\Internal\ObjectFullSpanRewriter.cs (1)
209SpanPathInfo currentInfo = _currentSpanPath.Peek();
System\Data\Objects\Internal\ObjectSpanRewriter.cs (1)
566info = _navSources.Peek();
System\Data\Query\PlanCompiler\CTreeGenerator.cs (1)
608if (!_varScopes.Peek().TryResolveVar(compVar, out retExpr))
System\Data\Query\PlanCompiler\PreProcessor.cs (2)
1539return m_entityTypeScopes.Peek(); 2222Node ancestor = m_ancestors.Peek();
System\Data\SqlClient\SqlGen\SqlGenerator.cs (2)
224get { return selectStatementStack.Peek(); } 241get { return isParentAJoinStack.Count == 0 ? false : isParentAJoinStack.Peek(); }
System.Data.Entity.Design (1)
System\Data\EntityModel\Emitters\FixUpCollection.cs (1)
506switch ( context.Peek() )
System.Data.Services (4)
System\Data\Services\Serializers\JsonWriter.cs (4)
139if (this.scopes.Peek().Type != ScopeType.Object) 144Scope currentScope = this.scopes.Peek(); 428Scope currentScope = this.scopes.Peek(); 460Scope currentScope = this.scopes.Peek();
System.Data.Services.Client (10)
System\Data\Services\Client\ALinq\ExpressionWriter.cs (1)
86this.parent = this.expressionStack.Peek();
System\Data\Services\Client\ALinq\InputBinder.cs (1)
150PropertyInfo currentProp = nestedAccesses.Peek();
System\Data\Services\Client\ALinq\PathBox.cs (1)
83return parameterExpressions.Peek();
System\Data\Services\Client\ProjectionPathBuilder.cs (4)
73get { return this.entityInScope.Peek(); } 82return this.parameterExpressionTypes.Peek(); 97return this.parameterExpressions.Peek(); 106return this.parameterEntries.Peek();
System\Data\Services\Client\Xml\XmlWrappingReader.cs (3)
67return this.xmlBaseStack.Peek().BaseUri.AbsoluteUri; 482newBaseUri = Util.CreateUri(this.xmlBaseStack.Peek().BaseUri, newBaseUri); 548if (this.xmlBaseStack != null && this.xmlBaseStack.Count > 0 && this.reader.Depth == this.xmlBaseStack.Peek().Depth)
System.Data.Services.Design (1)
System\Data\EntityModel\Emitters\FixUpCollection.cs (1)
502switch ( context.Peek() )
System.Data.SqlXml (5)
System\Xml\Xsl\QIL\QilXmlReader.cs (5)
101Debug.Assert(this.stk.Peek()[0].NodeType == QilNodeType.QilExpression, "Serialized qil tree did not contain a QilExpression node"); 102return (QilExpression) this.stk.Peek()[0]; 178this.stk.Peek().Add(nd); 305this.stk.Peek().Add(this.scope[id]); 382this.stk.Peek().Add(nd);
System.Runtime.DurableInstancing (2)
System\Runtime\DurableInstancing\InstancePersistenceContext.cs (2)
1205else if (this.executionStack.Peek().Current.IsTransactionEnlistmentOptional) 1244else if (!this.executionStack.Peek().Current.AutomaticallyAcquiringLock)
System.Web (3)
UI\WebControls\Wizard.cs (3)
1561previousIndex = _historyStack.Peek(); 1566previousIndex = _historyStack.Peek(); 1964_historyStack.Peek() != activeStepIndex) {
System.Web.Entity.Design (3)
System\Data\WebControls\Design\Util\WizardForm.cs (3)
238WizardPanel currentPanel = _panelHistory.Peek(); 282WizardPanel currentPanel = _panelHistory.Peek(); 329WizardPanel backPanel = _panelHistory.Peek();
System.Workflow.ComponentModel (1)
AuthoringOM\Design\WorkflowView.cs (1)
685return this.messageHitTestContexts.Peek();
System.Xml (2)
System\Xml\Schema\DtdParser.cs (1)
1186currentFrame = (ParseElementOnlyContent_LocalFrame)localFrames.Peek();
System\Xml\Schema\DtdParserAsync.cs (1)
810currentFrame = (ParseElementOnlyContent_LocalFrame)localFrames.Peek();
XamlBuildTask (2)
Microsoft\Build\Tasks\Xaml\ClassImporter.cs (2)
97stripNodeFromXaml = ProcessDirective(reader, result, currentTypes.Peek(), isRootElement, strippedXamlNodes, out readNextNode); 101NamedObject currentType = currentTypes.Peek();