Files
mono/mcs/class/System.XML/System.Xml.Serialization/XmlAnyElementAttribute.cs
T
Gonzalo Paniagua Javier aa0acdf4b2 2002-09-18 Gonzalo Paniagua Javier <[email protected]>
* XmlSerializationReader.cs: implemented a few methods.

	* XmlAnyElementAttribute.cs:
	* XmlArrayAttribute.cs:
	* XmlChoiceIdentifierAttribute.cs:
	* XmlElementAttribute.cs:
	* XmlMemberMapping.cs:
	* XmlMembersMapping.cs: class status based fixes.

svn path=/trunk/mcs/; revision=7578
2002-09-18 07:43:41 +00:00

67 lines
1.1 KiB
C#

//
// filename.cs:
//
// Author:
// John Donagher ([email protected])
//
// (C) 2002 John Donagher
//
using System;
namespace System.Xml.Serialization
{
/// <summary>
/// Summary description for XmlAnyElementAttribute.
/// </summary>
///
[AttributeUsage(AttributeTargets.Property | AttributeTargets.Field
| AttributeTargets.Parameter | AttributeTargets.ReturnValue)]
public class XmlAnyElementAttribute : Attribute
{
private string elementName;
private string ns;
private int order;
public XmlAnyElementAttribute ()
{
}
public XmlAnyElementAttribute (string name)
{
elementName = name;
}
public XmlAnyElementAttribute (string name, string ns)
{
elementName = name;
Namespace = ns;
}
public string Name {
get {
return elementName;
}
set {
elementName = value;
}
}
public string Namespace {
get {
return ns;
}
set {
ns = value;
}
}
/// <summary>
/// Specifies Order in which Memberswill be serialized as Elements.
/// </summary>
internal int Order
{
get{ return order; }
set{ order = value; }
}
}
}