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
52 lines
977 B
C#
52 lines
977 B
C#
//
|
|
// XmlChoiceIdentifierAttribute.cs:
|
|
//
|
|
// Author:
|
|
// John Donagher ([email protected])
|
|
//
|
|
// (C) 2002 John Donagher
|
|
//
|
|
|
|
using System;
|
|
|
|
namespace System.Xml.Serialization
|
|
{
|
|
/// <summary>
|
|
/// Summary description for XmlChoiceIdentifierAttribute.
|
|
/// </summary>
|
|
[AttributeUsage(AttributeTargets.Property | AttributeTargets.Field
|
|
| AttributeTargets.Parameter | AttributeTargets.ReturnValue)]
|
|
public class XmlChoiceIdentifierAttribute : Attribute
|
|
{
|
|
private string memberName;
|
|
private int order;
|
|
|
|
public XmlChoiceIdentifierAttribute ()
|
|
{
|
|
}
|
|
public XmlChoiceIdentifierAttribute (string name)
|
|
{
|
|
MemberName = name;
|
|
}
|
|
|
|
public string MemberName {
|
|
get {
|
|
return memberName;
|
|
}
|
|
set {
|
|
memberName = value;
|
|
}
|
|
}
|
|
|
|
/// <summary>
|
|
/// Specifies Order in which Memberswill be serialized as Elements.
|
|
/// </summary>
|
|
public int Order
|
|
{
|
|
get{ return order; }
|
|
set{ order = value; }
|
|
}
|
|
|
|
}
|
|
}
|