Files
mono/mcs/class/System.XML/System.Xml.Serialization/XmlElementAttribute.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

105 lines
1.8 KiB
C#

//
// XmlElementAttribute.cs:
//
// Author:
// John Donagher ([email protected])
//
// (C) 2002 John Donagher
//
using System.Xml.Schema;
using System;
namespace System.Xml.Serialization
{
/// <summary>
/// Summary description for XmlElementAttribute.
/// </summary
[AttributeUsage(AttributeTargets.Property | AttributeTargets.Field
| AttributeTargets.Parameter | AttributeTargets.ReturnValue, AllowMultiple=true)]
public class XmlElementAttribute : Attribute
{
private string dataType;
private string elementName;
private XmlSchemaForm form;
private string ns;
private bool isNullable;
private Type type;
private int order;
public XmlElementAttribute ()
{
}
public XmlElementAttribute (string elementName)
{
ElementName = elementName;
}
public XmlElementAttribute (Type type)
{
Type = type;
}
public XmlElementAttribute (string elementName, Type type)
{
ElementName = elementName;
Type = type;
}
public string DataType {
get {
return dataType;
}
set {
dataType = value;
}
}
public string ElementName {
get {
return elementName;
}
set {
elementName = value;
}
}
public XmlSchemaForm Form {
get {
return form;
}
set {
form = value;
}
}
public string Namespace {
get {
return ns;
}
set {
ns = value;
}
}
public bool IsNullable {
get {
return isNullable;
}
set {
isNullable = value;
}
}
public Type Type {
get {
return type;
}
set {
type = value;
}
}
/// <summary>
/// Specifies Order in which Memberswill be serialized as Elements.
/// </summary>
internal int Order
{
get{ return order; }
set{ order = value; }
}
}
}