private void SetFlag(ObjectWriterFrameFlags flag, bool value) { if (value) { this._flags = (ObjectWriterFrameFlags) ((byte) (this._flags | flag)); } else { this._flags = (ObjectWriterFrameFlags) ((byte) (this._flags & ((byte) ~flag))); } }
private void SetFlag(ObjectWriterFrameFlags flag, bool value) { if (value) { _flags = _flags | flag; } else { _flags = _flags & ~flag; } }
private void SetFlag(ObjectWriterFrameFlags flag, bool value) { if (value) { this._flags = (ObjectWriterFrameFlags)((byte)(this._flags | flag)); } else { this._flags = (ObjectWriterFrameFlags)((byte)(this._flags & ((byte)~flag))); } }
public override void Reset() { base.Reset(); _preconstructionPropertyValues = null; _assignedProperties = null; Instance = null; Collection = null; NameScopeDictionary = null; PositionalCtorArgs = null; InstanceRegisteredName = null; _flags = ObjectWriterFrameFlags.None; _key = null; }
public override void Reset() { base.Reset(); this._preconstructionPropertyValues = null; this._assignedProperties = null; this.Instance = null; this.Collection = null; this.NameScopeDictionary = null; this.PositionalCtorArgs = null; this.InstanceRegisteredName = null; this._flags = ObjectWriterFrameFlags.None; this._key = null; }
public ObjectWriterFrame(ObjectWriterFrame source) : base(source) { if (source._preconstructionPropertyValues != null) { this._preconstructionPropertyValues = new Dictionary <XamlMember, object>(source.PreconstructionPropertyValues); } if (source._assignedProperties != null) { this._assignedProperties = new HashSet <XamlMember>(source.AssignedProperties); } this._key = source._key; this._flags = source._flags; this.Instance = source.Instance; this.Collection = source.Collection; this.NameScopeDictionary = source.NameScopeDictionary; this.PositionalCtorArgs = source.PositionalCtorArgs; this.InstanceRegisteredName = source.InstanceRegisteredName; }
public ObjectWriterFrame(ObjectWriterFrame source) : base(source) { if (source._preconstructionPropertyValues != null) { this._preconstructionPropertyValues = new Dictionary<XamlMember, object>(source.PreconstructionPropertyValues); } if (source._assignedProperties != null) { this._assignedProperties = new HashSet<XamlMember>(source.AssignedProperties); } this._key = source._key; this._flags = source._flags; this.Instance = source.Instance; this.Collection = source.Collection; this.NameScopeDictionary = source.NameScopeDictionary; this.PositionalCtorArgs = source.PositionalCtorArgs; this.InstanceRegisteredName = source.InstanceRegisteredName; }
public ObjectWriterFrame(ObjectWriterFrame source) : base(source) { // Calling the getter will instantiate new Dictionaries. // So we just check the field instead to verify that it isn't // being used. if (source._preconstructionPropertyValues != null) { _preconstructionPropertyValues = new Dictionary <XamlMember, object>(source.PreconstructionPropertyValues); } if (source._assignedProperties != null) { _assignedProperties = new HashSet <XamlMember>(source.AssignedProperties); } _key = source._key; _flags = source._flags; Instance = source.Instance; Collection = source.Collection; NameScopeDictionary = source.NameScopeDictionary; PositionalCtorArgs = source.PositionalCtorArgs; InstanceRegisteredName = source.InstanceRegisteredName; }
private bool GetFlag(ObjectWriterFrameFlags flag) { return((_flags & flag) != ObjectWriterFrameFlags.None); }
private bool GetFlag(ObjectWriterFrameFlags flag) { return(((byte)(this._flags & flag)) != 0); }
private bool GetFlag(ObjectWriterFrameFlags flag) { return (((byte) (this._flags & flag)) != 0); }