mirror of
https://github.com/BepInEx/mono.git
synced 2026-11-19 01:31:17 -10:00
* 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
52 lines
979 B
C#
52 lines
979 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>
|
|
internal int Order
|
|
{
|
|
get{ return order; }
|
|
set{ order = value; }
|
|
}
|
|
|
|
}
|
|
}
|