public virtual Object Clone() { OutputSettings clone; clone = (OutputSettings)MemberwiseClone(); clone.Charset(charset.Name()); clone.escapeMode = Entities.EscapeMode.ValueOf(escapeMode.Name()); return(clone); }