SwfDotNet.IO.Tags.Types.ButtonRecordCollection.Serialize C# (CSharp) Method

Serialize() public method

Serializes the specified writer.
public Serialize ( XmlWriter writer ) : void
writer System.Xml.XmlWriter Writer.
return void
        public void Serialize(XmlWriter writer)
        {
            writer.WriteStartElement("ButtonRecordCollection");

            IEnumerator buttonRecords = this.GetEnumerator();
            while (buttonRecords.MoveNext())
                ((ButtonRecord)buttonRecords.Current).Serialize(writer);

            writer.WriteEndElement();
        }