mscorlib(4.0.0.0) API with additions
SoapEnumAttribute.cs
2 {
4  [AttributeUsage(AttributeTargets.Field)]
5  public class SoapEnumAttribute : Attribute
6  {
7  private string name;
8 
11  public string Name
12  {
13  get
14  {
15  if (name != null)
16  {
17  return name;
18  }
19  return string.Empty;
20  }
21  set
22  {
23  name = value;
24  }
25  }
26 
29  {
30  }
31 
34  public SoapEnumAttribute(string name)
35  {
36  this.name = name;
37  }
38  }
39 }
Controls how the T:System.Xml.Serialization.XmlSerializer serializes an enumeration member.
Represents the base class for custom attributes.
Definition: Attribute.cs:15
SoapEnumAttribute()
Initializes a new instance of the T:System.Xml.Serialization.SoapEnumAttribute class.
string Name
Gets or sets the value generated in an XML document when the T:System.Xml.Serialization....
AttributeTargets
Specifies the application elements on which it is valid to apply an attribute.
SoapEnumAttribute(string name)
Initializes a new instance of the T:System.Xml.Serialization.SoapEnumAttribute class using the specif...