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); 223ObjectWriterFrame frame = _stack.CurrentFrame; 238ObjectWriterFrame frame = _stack.CurrentFrame; 280ObjectWriterFrame frame = _stack.CurrentFrame; 320ObjectWriterFrame frame = _stack.PreviousFrame; 321ObjectWriterFrame lowerFrame = _stack.CurrentFrame; 435ObjectWriterFrame frame = _stack.PreviousFrame; 467_stack.PushScope(); 473_stack.Depth--; 479_stack.Depth++; 484_stack.PopScope(); 492get { return _stack.Depth; } 513get { return _stack.CurrentFrame.XamlType; } 514set { _stack.CurrentFrame.XamlType = value; } 519get { return _stack.PreviousFrame.XamlType; } 524get { return (_stack.PreviousPreviousFrame != null) ? _stack.PreviousPreviousFrame.XamlType : null; } 529get { return _stack.CurrentFrame.Member; } 530set { _stack.CurrentFrame.Member = value; } 535get { return _stack.PreviousFrame.Member; } 540get { return _stack.PreviousPreviousFrame.Member; } 545get { return _stack.CurrentFrame.Instance; } 546set { _stack.CurrentFrame.Instance = value; } 551get { return _stack.PreviousFrame.Instance; } 556get { return (_stack.PreviousPreviousFrame != null) ? _stack.PreviousPreviousFrame.Instance : null; } 561get { return _stack.CurrentFrame.Collection; } 562set { _stack.CurrentFrame.Collection = value; } 567get { return _stack.PreviousFrame.Collection; } 572get { return _stack.CurrentFrame.WasAssignedAtCreation; } 573set { _stack.CurrentFrame.WasAssignedAtCreation = value; } 578get { return _stack.CurrentFrame.IsObjectFromMember; } 579set { _stack.CurrentFrame.IsObjectFromMember = value; } 584get { return _stack.PreviousFrame.IsObjectFromMember; } 589get { return (_stack.PreviousPreviousFrame != null) ? _stack.PreviousPreviousFrame.IsObjectFromMember : false; } 595set { _stack.CurrentFrame.IsPropertyValueSet = value; } 600get { return _stack.PreviousFrame.IsPropertyValueSet; } 601set { _stack.PreviousFrame.IsPropertyValueSet = value; } 606get { return _stack.CurrentFrame.IsTypeConvertedObject; } 607set { _stack.CurrentFrame.IsTypeConvertedObject = value; } 612get { return _stack.CurrentFrame.PreconstructionPropertyValues; } 617get { return _stack.CurrentFrame.HasPreconstructionPropertyValuesDictionary; } 622get { return _stack.PreviousFrame.PreconstructionPropertyValues; } 627get { return _stack.CurrentFrame.AssignedProperties; } 632get { return _stack.PreviousFrame.AssignedProperties; } 637get { return _stack.CurrentFrame.InstanceRegisteredName; } 638set { _stack.CurrentFrame.InstanceRegisteredName = value; } 643get { return _stack.PreviousFrame.InstanceRegisteredName; } 644set { _stack.PreviousFrame.InstanceRegisteredName = value; } 668return LookupNameScopeDictionary((ObjectWriterFrame)_stack.CurrentFrame); 676return LookupNameScopeDictionary((ObjectWriterFrame)_stack.PreviousFrame); 684return LookupNameScopeDictionary((ObjectWriterFrame)_stack.PreviousPreviousFrame); 692ObjectWriterFrame rootFrame = _stack.GetFrame(SavedDepth + 1); 702get { return _stack.CurrentFrame.PositionalCtorArgs; } 703set { _stack.CurrentFrame.PositionalCtorArgs = value; } 708get { return _stack.CurrentFrame.Key; } 713get { return _stack.CurrentFrame.IsKeySet; } 718get { return _stack.PreviousFrame.Key; } 721_stack.PreviousFrame.Key = value; 727get { return _stack.CurrentFrame.KeyIsUnconverted; } 728set { _stack.CurrentFrame.KeyIsUnconverted = value; } 734set { _stack.PreviousFrame.KeyIsUnconverted = value; } 739get { return _stack.PreviousFrame.ShouldConvertChildKeys; } 740set { _stack.PreviousPreviousFrame.ShouldConvertChildKeys = value; } 745get { return _stack.PreviousPreviousFrame.ShouldConvertChildKeys; } 746set { _stack.PreviousPreviousFrame.ShouldConvertChildKeys = value; } 751get { return _stack.PreviousFrame.ShouldNotConvertChildKeys; } 752set { _stack.PreviousPreviousFrame.ShouldNotConvertChildKeys = value; } 757get { return _stack.PreviousPreviousFrame.ShouldNotConvertChildKeys; } 777if (_stack.Depth == 0) 782XamlFrame frame = _stack.CurrentFrame; 828var frame = (ObjectWriterFrame)_stack.CurrentFrame; 852var frame = (ObjectWriterFrame)_stack.CurrentFrame; 946var newStack = new XamlContextStack<ObjectWriterFrame>(_stack, true);