public override void WriteComment(string text) { try { if (text == null) { text = string.Empty; } AdvanceState(Token.Comment); _writer.WriteComment(text); } catch { _currentState = State.Error; throw; } }