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); 220ObjectWriterFrame frame = _stack.CurrentFrame; 235ObjectWriterFrame frame = _stack.CurrentFrame; 277ObjectWriterFrame frame = _stack.CurrentFrame; 317ObjectWriterFrame frame = _stack.PreviousFrame; 318ObjectWriterFrame lowerFrame = _stack.CurrentFrame; 432ObjectWriterFrame frame = _stack.PreviousFrame; 464_stack.PushScope(); 470_stack.Depth--; 476_stack.Depth++; 481_stack.PopScope(); 489get { return _stack.Depth; } 510get { return _stack.CurrentFrame.XamlType; } 511set { _stack.CurrentFrame.XamlType = value; } 516get { return _stack.PreviousFrame.XamlType; } 521get { return (_stack.PreviousPreviousFrame is not null) ? _stack.PreviousPreviousFrame.XamlType : null; } 526get { return _stack.CurrentFrame.Member; } 527set { _stack.CurrentFrame.Member = value; } 532get { return _stack.PreviousFrame.Member; } 537get { return _stack.PreviousPreviousFrame.Member; } 542get { return _stack.CurrentFrame.Instance; } 543set { _stack.CurrentFrame.Instance = value; } 548get { return _stack.PreviousFrame.Instance; } 553get { return (_stack.PreviousPreviousFrame is not null) ? _stack.PreviousPreviousFrame.Instance : null; } 558get { return _stack.CurrentFrame.Collection; } 559set { _stack.CurrentFrame.Collection = value; } 564get { return _stack.PreviousFrame.Collection; } 569get { return _stack.CurrentFrame.WasAssignedAtCreation; } 570set { _stack.CurrentFrame.WasAssignedAtCreation = value; } 575get { return _stack.CurrentFrame.IsObjectFromMember; } 576set { _stack.CurrentFrame.IsObjectFromMember = value; } 581get { return _stack.PreviousFrame.IsObjectFromMember; } 586get { return (_stack.PreviousPreviousFrame is not null) ? _stack.PreviousPreviousFrame.IsObjectFromMember : false; } 592set { _stack.CurrentFrame.IsPropertyValueSet = value; } 597get { return _stack.PreviousFrame.IsPropertyValueSet; } 598set { _stack.PreviousFrame.IsPropertyValueSet = value; } 603get { return _stack.CurrentFrame.IsTypeConvertedObject; } 604set { _stack.CurrentFrame.IsTypeConvertedObject = value; } 609get { return _stack.CurrentFrame.PreconstructionPropertyValues; } 614get { return _stack.CurrentFrame.HasPreconstructionPropertyValuesDictionary; } 619get { return _stack.PreviousFrame.PreconstructionPropertyValues; } 624get { return _stack.CurrentFrame.AssignedProperties; } 629get { return _stack.PreviousFrame.AssignedProperties; } 634get { return _stack.CurrentFrame.InstanceRegisteredName; } 635set { _stack.CurrentFrame.InstanceRegisteredName = value; } 640get { return _stack.PreviousFrame.InstanceRegisteredName; } 641set { _stack.PreviousFrame.InstanceRegisteredName = value; } 665return LookupNameScopeDictionary((ObjectWriterFrame)_stack.CurrentFrame); 673return LookupNameScopeDictionary((ObjectWriterFrame)_stack.PreviousFrame); 681return LookupNameScopeDictionary((ObjectWriterFrame)_stack.PreviousPreviousFrame); 689ObjectWriterFrame rootFrame = _stack.GetFrame(SavedDepth + 1); 699get { return _stack.CurrentFrame.PositionalCtorArgs; } 700set { _stack.CurrentFrame.PositionalCtorArgs = value; } 705get { return _stack.CurrentFrame.Key; } 710get { return _stack.CurrentFrame.IsKeySet; } 715get { return _stack.PreviousFrame.Key; } 718_stack.PreviousFrame.Key = value; 724get { return _stack.CurrentFrame.KeyIsUnconverted; } 725set { _stack.CurrentFrame.KeyIsUnconverted = value; } 731set { _stack.PreviousFrame.KeyIsUnconverted = value; } 736get { return _stack.PreviousFrame.ShouldConvertChildKeys; } 737set { _stack.PreviousPreviousFrame.ShouldConvertChildKeys = value; } 742get { return _stack.PreviousPreviousFrame.ShouldConvertChildKeys; } 743set { _stack.PreviousPreviousFrame.ShouldConvertChildKeys = value; } 748get { return _stack.PreviousFrame.ShouldNotConvertChildKeys; } 749set { _stack.PreviousPreviousFrame.ShouldNotConvertChildKeys = value; } 754get { return _stack.PreviousPreviousFrame.ShouldNotConvertChildKeys; } 774if (_stack.Depth == 0) 779XamlFrame frame = _stack.CurrentFrame; 825var frame = (ObjectWriterFrame)_stack.CurrentFrame; 849var frame = (ObjectWriterFrame)_stack.CurrentFrame; 943var newStack = new XamlContextStack<ObjectWriterFrame>(_stack, true);