void EncodeAttributeValue (char[] value, int startIndex, int count) { if (WriterState != HtmlWriterState.Attribute) throw new InvalidOperationException ("Attribute values can only be written in the Attribute state."); html.Write ('='); HtmlUtils.HtmlAttributeEncode (html, value, startIndex, count); WriterState = HtmlWriterState.Tag; }