private void AddAttribute(string name, string value) { if (this.current == null) { throw new InvalidOperationException("Unexpected attribute"); } this.SetAttribute(this.current, name, value); }