When overridden in a derived class, writes out an entity reference as &name;.
name The name of the entity reference.
TypeReasonArgumentException name is either null or string.Empty.
For the asynchronous version of this method, see XmlWriter.WriteEntityRefAsync(string).