2 writes to _stack
System.Xaml (2)
System\Xaml\Context\ObjectWriterContext.cs (2)
32_stack = new XamlContextStack<ObjectWriterFrame>(savedContext.Stack, false); 82_stack = new XamlContextStack<ObjectWriterFrame>(() => new ObjectWriterFrame());
80 references to _stack
System.Xaml (80)
System\Xaml\Context\ObjectWriterContext.cs (80)
64_stack.PushScope(); 65_savedDepth = _stack.Depth; 66_stack.CurrentFrame.NameScopeDictionary = rootNameScopeDictionary; 67_stack.PushScope(); 73_savedDepth = _stack.Depth - 1; 99_stack.CurrentFrame.NameScopeDictionary = rootNameScopeDictionary; 100_stack.PushScope(); // put a blank sentinal frame on the stack. 220_stack.CurrentFrame.AddNamespace(prefix, xamlNS); 226ObjectWriterFrame frame = _stack.CurrentFrame; 243ObjectWriterFrame frame = _stack.CurrentFrame; 287ObjectWriterFrame frame = _stack.CurrentFrame; 328ObjectWriterFrame frame = _stack.PreviousFrame; 329ObjectWriterFrame lowerFrame = _stack.CurrentFrame; 441ObjectWriterFrame frame = _stack.PreviousFrame; 473_stack.PushScope(); 479_stack.Depth--; 485_stack.Depth++; 490_stack.PopScope(); 498get { return _stack.Depth; } 519get { return _stack.CurrentFrame.XamlType; } 520set { _stack.CurrentFrame.XamlType = value; } 525get { return _stack.PreviousFrame.XamlType; } 530get { return _stack.PreviousPreviousFrame?.XamlType; } 535get { return _stack.CurrentFrame.Member; } 536set { _stack.CurrentFrame.Member = value; } 541get { return _stack.PreviousFrame.Member; } 546get { return _stack.PreviousPreviousFrame.Member; } 551get { return _stack.CurrentFrame.Instance; } 552set { _stack.CurrentFrame.Instance = value; } 557get { return _stack.PreviousFrame.Instance; } 562get { return _stack.PreviousPreviousFrame?.Instance; } 567get { return _stack.CurrentFrame.Collection; } 568set { _stack.CurrentFrame.Collection = value; } 573get { return _stack.PreviousFrame.Collection; } 578get { return _stack.CurrentFrame.WasAssignedAtCreation; } 579set { _stack.CurrentFrame.WasAssignedAtCreation = value; } 584get { return _stack.CurrentFrame.IsObjectFromMember; } 585set { _stack.CurrentFrame.IsObjectFromMember = value; } 590get { return _stack.PreviousFrame.IsObjectFromMember; } 595get { return (_stack.PreviousPreviousFrame is not null) ? _stack.PreviousPreviousFrame.IsObjectFromMember : false; } 601set { _stack.CurrentFrame.IsPropertyValueSet = value; } 606get { return _stack.PreviousFrame.IsPropertyValueSet; } 607set { _stack.PreviousFrame.IsPropertyValueSet = value; } 612get { return _stack.CurrentFrame.IsTypeConvertedObject; } 613set { _stack.CurrentFrame.IsTypeConvertedObject = value; } 618get { return _stack.CurrentFrame.PreconstructionPropertyValues; } 623get { return _stack.CurrentFrame.HasPreconstructionPropertyValuesDictionary; } 628get { return _stack.PreviousFrame.PreconstructionPropertyValues; } 633get { return _stack.CurrentFrame.AssignedProperties; } 638get { return _stack.PreviousFrame.AssignedProperties; } 643get { return _stack.CurrentFrame.InstanceRegisteredName; } 644set { _stack.CurrentFrame.InstanceRegisteredName = value; } 649get { return _stack.PreviousFrame.InstanceRegisteredName; } 650set { _stack.PreviousFrame.InstanceRegisteredName = value; } 674return LookupNameScopeDictionary((ObjectWriterFrame)_stack.CurrentFrame); 682return LookupNameScopeDictionary((ObjectWriterFrame)_stack.PreviousFrame); 690return LookupNameScopeDictionary((ObjectWriterFrame)_stack.PreviousPreviousFrame); 698ObjectWriterFrame rootFrame = _stack.GetFrame(SavedDepth + 1); 708get { return _stack.CurrentFrame.PositionalCtorArgs; } 709set { _stack.CurrentFrame.PositionalCtorArgs = value; } 714get { return _stack.CurrentFrame.Key; } 719get { return _stack.CurrentFrame.IsKeySet; } 724get { return _stack.PreviousFrame.Key; } 727_stack.PreviousFrame.Key = value; 733get { return _stack.CurrentFrame.KeyIsUnconverted; } 734set { _stack.CurrentFrame.KeyIsUnconverted = value; } 740set { _stack.PreviousFrame.KeyIsUnconverted = value; } 745get { return _stack.PreviousFrame.ShouldConvertChildKeys; } 746set { _stack.PreviousPreviousFrame.ShouldConvertChildKeys = value; } 751get { return _stack.PreviousPreviousFrame.ShouldConvertChildKeys; } 752set { _stack.PreviousPreviousFrame.ShouldConvertChildKeys = value; } 757get { return _stack.PreviousFrame.ShouldNotConvertChildKeys; } 758set { _stack.PreviousPreviousFrame.ShouldNotConvertChildKeys = value; } 763get { return _stack.PreviousPreviousFrame.ShouldNotConvertChildKeys; } 784if (_stack.Depth == 0) 789XamlFrame frame = _stack.CurrentFrame; 838var frame = (ObjectWriterFrame)_stack.CurrentFrame; 864var frame = (ObjectWriterFrame)_stack.CurrentFrame; 959var newStack = new XamlContextStack<ObjectWriterFrame>(_stack, true);