mscorlib(4.0.0.0) API with additions
SoapElementAttribute.cs
2 {
4  [AttributeUsage(AttributeTargets.Property | AttributeTargets.Field | AttributeTargets.Parameter | AttributeTargets.ReturnValue)]
6  {
7  private string elementName;
8 
9  private string dataType;
10 
11  private bool nullable;
12 
15  public string ElementName
16  {
17  get
18  {
19  if (elementName != null)
20  {
21  return elementName;
22  }
23  return string.Empty;
24  }
25  set
26  {
27  elementName = value;
28  }
29  }
30 
33  public string DataType
34  {
35  get
36  {
37  if (dataType != null)
38  {
39  return dataType;
40  }
41  return string.Empty;
42  }
43  set
44  {
45  dataType = value;
46  }
47  }
48 
52  public bool IsNullable
53  {
54  get
55  {
56  return nullable;
57  }
58  set
59  {
60  nullable = value;
61  }
62  }
63 
66  {
67  }
68 
71  public SoapElementAttribute(string elementName)
72  {
73  this.elementName = elementName;
74  }
75  }
76 }
SoapElementAttribute(string elementName)
Initializes a new instance of the T:System.Xml.Serialization.SoapElementAttribute class and specifies...
string DataType
Gets or sets the XML Schema definition language (XSD) data type of the generated XML element.
Represents the base class for custom attributes.
Definition: Attribute.cs:15
Specifies that the public member value be serialized by the T:System.Xml.Serialization....
SoapElementAttribute()
Initializes a new instance of the T:System.Xml.Serialization.SoapElementAttribute class.
AttributeTargets
Specifies the application elements on which it is valid to apply an attribute.
string ElementName
Gets or sets the name of the generated XML element.
bool IsNullable
Gets or sets a value that indicates whether the T:System.Xml.Serialization.XmlSerializer must seriali...