public override void WriteXml(XmlWriter writer) { base.WriteXml(writer); writer.WriteAttributeString("Separator", Separator); writer.WriteAttributeString("SplitType", SplitType.ToString()); writer.WriteAttributeString("AsEnum", AsEnum.ToString()); writer.WriteStartElement("Dictionary"); writer.WriteAttributeString("Length", Dictionary.Length.ToString()); for (int i = 0; i < Dictionary.Length; i++) { writer.WriteStartElement("item"); writer.WriteValue(Dictionary[i]); writer.WriteEndElement(); } writer.WriteEndElement(); writer.WriteStartElement("Exclude"); writer.WriteAttributeString("Length", Exclude.Length.ToString()); for (int i = 0; i < Exclude.Length; i++) { writer.WriteStartElement("item"); writer.WriteValue(Exclude[i]); writer.WriteEndElement(); } writer.WriteEndElement(); }
public override string ToString() => AsEnum.ToString();