mirror of
https://github.com/BepInEx/mono.git
synced 2026-11-18 03:51:19 -10:00
* XmlSerializer: Serialize() method Partially Implemented. svn path=/trunk/mcs/; revision=5478
67 lines
1.1 KiB
C#
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>
|
|
public int Order
|
|
{
|
|
get{ return order; }
|
|
set{ order = value; }
|
|
}
|
|
}
|
|
}
|