public override void WriteEntityRef (string text) { CheckState (); throw new NotSupportedException ("This XmlDictionaryWriter does not support writing entity reference"); }