Update Reference Sources to .NET Framework 4.6.1
[mono.git] / mcs / class / referencesource / System.Xml / System / Xml / Serialization / XmlChoiceIdentifierAttribute.cs
1 //------------------------------------------------------------------------------
2 // <copyright file="XmlChoiceIdentifierAttribute.cs" company="Microsoft">
3 //     Copyright (c) Microsoft Corporation.  All rights reserved.
4 // </copyright>
5 // <owner current="true" primary="true">[....]</owner>                                                                
6 //------------------------------------------------------------------------------
7
8 namespace System.Xml.Serialization {
9     using System;
10     using System.Xml.Schema;
11     using System.Reflection;
12
13     /// <include file='doc\XmlChoiceIdentifierAttribute.uex' path='docs/doc[@for="XmlChoiceIdentifierAttribute"]/*' />
14     /// <devdoc>
15     ///    <para>[To be supplied.]</para>
16     /// </devdoc>
17     [AttributeUsage(AttributeTargets.Field | AttributeTargets.Property | AttributeTargets.Parameter | AttributeTargets.ReturnValue, AllowMultiple=false)]
18     public class XmlChoiceIdentifierAttribute : System.Attribute {
19         string name;
20         MemberInfo memberInfo;
21
22         /// <include file='doc\XmlChoiceIdentifierAttribute.uex' path='docs/doc[@for="XmlChoiceIdentifierAttribute.XmlChoiceIdentifierAttribute"]/*' />
23         /// <devdoc>
24         ///    <para>[To be supplied.]</para>
25         /// </devdoc>
26         public XmlChoiceIdentifierAttribute() {
27         }
28         
29         /// <include file='doc\XmlChoiceIdentifierAttribute.uex' path='docs/doc[@for="XmlChoiceIdentifierAttribute.XmlChoiceIdentifierAttribute1"]/*' />
30         /// <devdoc>
31         ///    <para>[To be supplied.]</para>
32         /// </devdoc>
33         public XmlChoiceIdentifierAttribute(string name) {
34             this.name = name;
35         }
36
37         /// <include file='doc\XmlChoiceIdentifierAttribute.uex' path='docs/doc[@for="XmlChoiceIdentifierAttribute.Name"]/*' />
38         /// <devdoc>
39         ///    <para>[To be supplied.]</para>
40         /// </devdoc>
41         public string MemberName {
42             get { return name == null ? string.Empty : name; }
43             set { name = value; }
44         }
45
46         internal MemberInfo MemberInfo {
47             get { return memberInfo; }
48             set { memberInfo = value; }
49         }
50     }
51 }