예제 #1
0
        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();
        }
예제 #2
0
 public override string ToString() => AsEnum.ToString();