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