2 writes to _stack
System.Xaml (2)
System\Xaml\Context\ObjectWriterContext.cs (2)
32
_stack
= new XamlContextStack<ObjectWriterFrame>(savedContext.Stack, false);
81
_stack
= new XamlContextStack<ObjectWriterFrame>(() => new ObjectWriterFrame());
82 references to _stack
System.Xaml (82)
System\Xaml\Context\ObjectWriterContext.cs (82)
63
_stack
.PushScope();
64
_savedDepth =
_stack
.Depth;
65
_stack
.CurrentFrame.NameScopeDictionary = rootNameScopeDictionary;
66
_stack
.PushScope();
72
_savedDepth =
_stack
.Depth - 1;
97
_stack
.CurrentFrame.NameScopeDictionary = rootNameScopeDictionary;
98
_stack
.PushScope(); // put a blank sentinal frame on the stack.
214
_stack
.CurrentFrame.AddNamespace(prefix, xamlNS);
220
ObjectWriterFrame frame =
_stack
.CurrentFrame;
235
ObjectWriterFrame frame =
_stack
.CurrentFrame;
277
ObjectWriterFrame frame =
_stack
.CurrentFrame;
317
ObjectWriterFrame frame =
_stack
.PreviousFrame;
318
ObjectWriterFrame lowerFrame =
_stack
.CurrentFrame;
432
ObjectWriterFrame frame =
_stack
.PreviousFrame;
464
_stack
.PushScope();
470
_stack
.Depth--;
476
_stack
.Depth++;
481
_stack
.PopScope();
489
get { return
_stack
.Depth; }
510
get { return
_stack
.CurrentFrame.XamlType; }
511
set {
_stack
.CurrentFrame.XamlType = value; }
516
get { return
_stack
.PreviousFrame.XamlType; }
521
get { return (
_stack
.PreviousPreviousFrame is not null) ?
_stack
.PreviousPreviousFrame.XamlType : null; }
526
get { return
_stack
.CurrentFrame.Member; }
527
set {
_stack
.CurrentFrame.Member = value; }
532
get { return
_stack
.PreviousFrame.Member; }
537
get { return
_stack
.PreviousPreviousFrame.Member; }
542
get { return
_stack
.CurrentFrame.Instance; }
543
set {
_stack
.CurrentFrame.Instance = value; }
548
get { return
_stack
.PreviousFrame.Instance; }
553
get { return (
_stack
.PreviousPreviousFrame is not null) ?
_stack
.PreviousPreviousFrame.Instance : null; }
558
get { return
_stack
.CurrentFrame.Collection; }
559
set {
_stack
.CurrentFrame.Collection = value; }
564
get { return
_stack
.PreviousFrame.Collection; }
569
get { return
_stack
.CurrentFrame.WasAssignedAtCreation; }
570
set {
_stack
.CurrentFrame.WasAssignedAtCreation = value; }
575
get { return
_stack
.CurrentFrame.IsObjectFromMember; }
576
set {
_stack
.CurrentFrame.IsObjectFromMember = value; }
581
get { return
_stack
.PreviousFrame.IsObjectFromMember; }
586
get { return (
_stack
.PreviousPreviousFrame is not null) ?
_stack
.PreviousPreviousFrame.IsObjectFromMember : false; }
592
set {
_stack
.CurrentFrame.IsPropertyValueSet = value; }
597
get { return
_stack
.PreviousFrame.IsPropertyValueSet; }
598
set {
_stack
.PreviousFrame.IsPropertyValueSet = value; }
603
get { return
_stack
.CurrentFrame.IsTypeConvertedObject; }
604
set {
_stack
.CurrentFrame.IsTypeConvertedObject = value; }
609
get { return
_stack
.CurrentFrame.PreconstructionPropertyValues; }
614
get { return
_stack
.CurrentFrame.HasPreconstructionPropertyValuesDictionary; }
619
get { return
_stack
.PreviousFrame.PreconstructionPropertyValues; }
624
get { return
_stack
.CurrentFrame.AssignedProperties; }
629
get { return
_stack
.PreviousFrame.AssignedProperties; }
634
get { return
_stack
.CurrentFrame.InstanceRegisteredName; }
635
set {
_stack
.CurrentFrame.InstanceRegisteredName = value; }
640
get { return
_stack
.PreviousFrame.InstanceRegisteredName; }
641
set {
_stack
.PreviousFrame.InstanceRegisteredName = value; }
665
return LookupNameScopeDictionary((ObjectWriterFrame)
_stack
.CurrentFrame);
673
return LookupNameScopeDictionary((ObjectWriterFrame)
_stack
.PreviousFrame);
681
return LookupNameScopeDictionary((ObjectWriterFrame)
_stack
.PreviousPreviousFrame);
689
ObjectWriterFrame rootFrame =
_stack
.GetFrame(SavedDepth + 1);
699
get { return
_stack
.CurrentFrame.PositionalCtorArgs; }
700
set {
_stack
.CurrentFrame.PositionalCtorArgs = value; }
705
get { return
_stack
.CurrentFrame.Key; }
710
get { return
_stack
.CurrentFrame.IsKeySet; }
715
get { return
_stack
.PreviousFrame.Key; }
718
_stack
.PreviousFrame.Key = value;
724
get { return
_stack
.CurrentFrame.KeyIsUnconverted; }
725
set {
_stack
.CurrentFrame.KeyIsUnconverted = value; }
731
set {
_stack
.PreviousFrame.KeyIsUnconverted = value; }
736
get { return
_stack
.PreviousFrame.ShouldConvertChildKeys; }
737
set {
_stack
.PreviousPreviousFrame.ShouldConvertChildKeys = value; }
742
get { return
_stack
.PreviousPreviousFrame.ShouldConvertChildKeys; }
743
set {
_stack
.PreviousPreviousFrame.ShouldConvertChildKeys = value; }
748
get { return
_stack
.PreviousFrame.ShouldNotConvertChildKeys; }
749
set {
_stack
.PreviousPreviousFrame.ShouldNotConvertChildKeys = value; }
754
get { return
_stack
.PreviousPreviousFrame.ShouldNotConvertChildKeys; }
774
if (
_stack
.Depth == 0)
779
XamlFrame frame =
_stack
.CurrentFrame;
825
var frame = (ObjectWriterFrame)
_stack
.CurrentFrame;
849
var frame = (ObjectWriterFrame)
_stack
.CurrentFrame;
943
var newStack = new XamlContextStack<ObjectWriterFrame>(
_stack
, true);