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