2 writes to _stack
System.Xaml (2)
System\Xaml\Context\ObjectWriterContext.cs (2)
35
_stack
= new XamlContextStack<ObjectWriterFrame>(savedContext.Stack, false);
84
_stack
= new XamlContextStack<ObjectWriterFrame>(() => new ObjectWriterFrame());
82 references to _stack
System.Xaml (82)
System\Xaml\Context\ObjectWriterContext.cs (82)
66
_stack
.PushScope();
67
_savedDepth =
_stack
.Depth;
68
_stack
.CurrentFrame.NameScopeDictionary = rootNameScopeDictionary;
69
_stack
.PushScope();
75
_savedDepth =
_stack
.Depth - 1;
100
_stack
.CurrentFrame.NameScopeDictionary = rootNameScopeDictionary;
101
_stack
.PushScope(); // put a blank sentinal frame on the stack.
217
_stack
.CurrentFrame.AddNamespace(prefix, xamlNS);
223
ObjectWriterFrame frame =
_stack
.CurrentFrame;
238
ObjectWriterFrame frame =
_stack
.CurrentFrame;
280
ObjectWriterFrame frame =
_stack
.CurrentFrame;
320
ObjectWriterFrame frame =
_stack
.PreviousFrame;
321
ObjectWriterFrame lowerFrame =
_stack
.CurrentFrame;
435
ObjectWriterFrame frame =
_stack
.PreviousFrame;
467
_stack
.PushScope();
473
_stack
.Depth--;
479
_stack
.Depth++;
484
_stack
.PopScope();
492
get { return
_stack
.Depth; }
513
get { return
_stack
.CurrentFrame.XamlType; }
514
set {
_stack
.CurrentFrame.XamlType = value; }
519
get { return
_stack
.PreviousFrame.XamlType; }
524
get { return (
_stack
.PreviousPreviousFrame != null) ?
_stack
.PreviousPreviousFrame.XamlType : null; }
529
get { return
_stack
.CurrentFrame.Member; }
530
set {
_stack
.CurrentFrame.Member = value; }
535
get { return
_stack
.PreviousFrame.Member; }
540
get { return
_stack
.PreviousPreviousFrame.Member; }
545
get { return
_stack
.CurrentFrame.Instance; }
546
set {
_stack
.CurrentFrame.Instance = value; }
551
get { return
_stack
.PreviousFrame.Instance; }
556
get { return (
_stack
.PreviousPreviousFrame != null) ?
_stack
.PreviousPreviousFrame.Instance : null; }
561
get { return
_stack
.CurrentFrame.Collection; }
562
set {
_stack
.CurrentFrame.Collection = value; }
567
get { return
_stack
.PreviousFrame.Collection; }
572
get { return
_stack
.CurrentFrame.WasAssignedAtCreation; }
573
set {
_stack
.CurrentFrame.WasAssignedAtCreation = value; }
578
get { return
_stack
.CurrentFrame.IsObjectFromMember; }
579
set {
_stack
.CurrentFrame.IsObjectFromMember = value; }
584
get { return
_stack
.PreviousFrame.IsObjectFromMember; }
589
get { return (
_stack
.PreviousPreviousFrame != null) ?
_stack
.PreviousPreviousFrame.IsObjectFromMember : false; }
595
set {
_stack
.CurrentFrame.IsPropertyValueSet = value; }
600
get { return
_stack
.PreviousFrame.IsPropertyValueSet; }
601
set {
_stack
.PreviousFrame.IsPropertyValueSet = value; }
606
get { return
_stack
.CurrentFrame.IsTypeConvertedObject; }
607
set {
_stack
.CurrentFrame.IsTypeConvertedObject = value; }
612
get { return
_stack
.CurrentFrame.PreconstructionPropertyValues; }
617
get { return
_stack
.CurrentFrame.HasPreconstructionPropertyValuesDictionary; }
622
get { return
_stack
.PreviousFrame.PreconstructionPropertyValues; }
627
get { return
_stack
.CurrentFrame.AssignedProperties; }
632
get { return
_stack
.PreviousFrame.AssignedProperties; }
637
get { return
_stack
.CurrentFrame.InstanceRegisteredName; }
638
set {
_stack
.CurrentFrame.InstanceRegisteredName = value; }
643
get { return
_stack
.PreviousFrame.InstanceRegisteredName; }
644
set {
_stack
.PreviousFrame.InstanceRegisteredName = value; }
668
return LookupNameScopeDictionary((ObjectWriterFrame)
_stack
.CurrentFrame);
676
return LookupNameScopeDictionary((ObjectWriterFrame)
_stack
.PreviousFrame);
684
return LookupNameScopeDictionary((ObjectWriterFrame)
_stack
.PreviousPreviousFrame);
692
ObjectWriterFrame rootFrame =
_stack
.GetFrame(SavedDepth + 1);
702
get { return
_stack
.CurrentFrame.PositionalCtorArgs; }
703
set {
_stack
.CurrentFrame.PositionalCtorArgs = value; }
708
get { return
_stack
.CurrentFrame.Key; }
713
get { return
_stack
.CurrentFrame.IsKeySet; }
718
get { return
_stack
.PreviousFrame.Key; }
721
_stack
.PreviousFrame.Key = value;
727
get { return
_stack
.CurrentFrame.KeyIsUnconverted; }
728
set {
_stack
.CurrentFrame.KeyIsUnconverted = value; }
734
set {
_stack
.PreviousFrame.KeyIsUnconverted = value; }
739
get { return
_stack
.PreviousFrame.ShouldConvertChildKeys; }
740
set {
_stack
.PreviousPreviousFrame.ShouldConvertChildKeys = value; }
745
get { return
_stack
.PreviousPreviousFrame.ShouldConvertChildKeys; }
746
set {
_stack
.PreviousPreviousFrame.ShouldConvertChildKeys = value; }
751
get { return
_stack
.PreviousFrame.ShouldNotConvertChildKeys; }
752
set {
_stack
.PreviousPreviousFrame.ShouldNotConvertChildKeys = value; }
757
get { return
_stack
.PreviousPreviousFrame.ShouldNotConvertChildKeys; }
777
if (
_stack
.Depth == 0)
782
XamlFrame frame =
_stack
.CurrentFrame;
828
var frame = (ObjectWriterFrame)
_stack
.CurrentFrame;
852
var frame = (ObjectWriterFrame)
_stack
.CurrentFrame;
946
var newStack = new XamlContextStack<ObjectWriterFrame>(
_stack
, true);