using System; using System.Collections.Generic; using System.Text; using System.Xml; using System.Xml.Serialization; using System.Reflection; using System.Collections.ObjectModel; namespace Globe.Xml.Serialization { /// <summary> /// Attribute to control the serialization system. /// </summary> [AttributeUsage(AttributeTargets.All, AllowMultiple = false, Inherited = false)] public abstract class XmlSerializable : Attribute { #region Constructors /// <summary> /// Default constructor. /// </summary> public XmlSerializable() { } /// <summary> /// Constructor. /// </summary> /// <param name="tagName">Tag name in the xml.</param> public XmlSerializable(string tagName) { _tagName = tagName; } #endregion #region Properties string _tagName = string.Empty; /// <summary> /// Gets the name of the xml tag relative to the current serializable object. /// </summary> public string TagName { get { return _tagName; } } #endregion } }
By viewing downloads associated with this article you agree to the Terms of Service and the article's licence.
If a file you wish to view isn't highlighted, and is a text file (not binary), please let us know and we'll add colourisation support for it.
This article, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)