1 //------------------------------------------------------------------------------
2 // <copyright file="XmlChoiceIdentifierAttribute.cs" company="Microsoft">
3 // Copyright (c) Microsoft Corporation. All rights reserved.
5 // <owner current="true" primary="true">[....]</owner>
6 //------------------------------------------------------------------------------
8 namespace System.Xml.Serialization {
10 using System.Xml.Schema;
11 using System.Reflection;
13 /// <include file='doc\XmlChoiceIdentifierAttribute.uex' path='docs/doc[@for="XmlChoiceIdentifierAttribute"]/*' />
15 /// <para>[To be supplied.]</para>
17 [AttributeUsage(AttributeTargets.Field | AttributeTargets.Property | AttributeTargets.Parameter | AttributeTargets.ReturnValue, AllowMultiple=false)]
18 public class XmlChoiceIdentifierAttribute : System.Attribute {
20 MemberInfo memberInfo;
22 /// <include file='doc\XmlChoiceIdentifierAttribute.uex' path='docs/doc[@for="XmlChoiceIdentifierAttribute.XmlChoiceIdentifierAttribute"]/*' />
24 /// <para>[To be supplied.]</para>
26 public XmlChoiceIdentifierAttribute() {
29 /// <include file='doc\XmlChoiceIdentifierAttribute.uex' path='docs/doc[@for="XmlChoiceIdentifierAttribute.XmlChoiceIdentifierAttribute1"]/*' />
31 /// <para>[To be supplied.]</para>
33 public XmlChoiceIdentifierAttribute(string name) {
37 /// <include file='doc\XmlChoiceIdentifierAttribute.uex' path='docs/doc[@for="XmlChoiceIdentifierAttribute.Name"]/*' />
39 /// <para>[To be supplied.]</para>
41 public string MemberName {
42 get { return name == null ? string.Empty : name; }
46 internal MemberInfo MemberInfo {
47 get { return memberInfo; }
48 set { memberInfo = value; }