mscorlib(4.0.0.0) API with additions
XmlChoiceIdentifierAttribute.cs
1 using System.Reflection;
2 
4 {
6  [AttributeUsage(AttributeTargets.Property | AttributeTargets.Field | AttributeTargets.Parameter | AttributeTargets.ReturnValue, AllowMultiple = false)]
7  [global::__DynamicallyInvokable]
9  {
10  private string name;
11 
12  private MemberInfo memberInfo;
13 
16  [global::__DynamicallyInvokable]
17  public string MemberName
18  {
19  [global::__DynamicallyInvokable]
20  get
21  {
22  if (name != null)
23  {
24  return name;
25  }
26  return string.Empty;
27  }
28  [global::__DynamicallyInvokable]
29  set
30  {
31  name = value;
32  }
33  }
34 
35  internal MemberInfo MemberInfo
36  {
37  get
38  {
39  return memberInfo;
40  }
41  set
42  {
43  memberInfo = value;
44  }
45  }
46 
48  [global::__DynamicallyInvokable]
50  {
51  }
52 
55  [global::__DynamicallyInvokable]
56  public XmlChoiceIdentifierAttribute(string name)
57  {
58  this.name = name;
59  }
60  }
61 }
Obtains information about the attributes of a member and provides access to member metadata.
Definition: MemberInfo.cs:14
Represents the base class for custom attributes.
Definition: Attribute.cs:15
Definition: __Canon.cs:3
string MemberName
Gets or sets the name of the field that returns the enumeration to use when detecting types.
XmlChoiceIdentifierAttribute()
Initializes a new instance of the T:System.Xml.Serialization.XmlChoiceIdentifierAttribute class.
XmlChoiceIdentifierAttribute(string name)
Initializes a new instance of the T:System.Xml.Serialization.XmlChoiceIdentifierAttribute class.
AttributeTargets
Specifies the application elements on which it is valid to apply an attribute.
Specifies that the member can be further detected by using an enumeration.