7 [global::__DynamicallyInvokable]
10 private string elementName;
16 private string dataType;
18 private bool nullable;
20 private bool nullableSpecified;
24 private int order = -1;
28 [global::__DynamicallyInvokable]
31 [global::__DynamicallyInvokable]
36 [global::__DynamicallyInvokable]
45 [global::__DynamicallyInvokable]
48 [global::__DynamicallyInvokable]
51 if (elementName !=
null)
57 [global::__DynamicallyInvokable]
66 [global::__DynamicallyInvokable]
69 [global::__DynamicallyInvokable]
74 [global::__DynamicallyInvokable]
84 [global::__DynamicallyInvokable]
87 [global::__DynamicallyInvokable]
96 [global::__DynamicallyInvokable]
106 [global::__DynamicallyInvokable]
109 [global::__DynamicallyInvokable]
114 [global::__DynamicallyInvokable]
118 nullableSpecified =
true;
122 internal bool IsNullableSpecified => nullableSpecified;
126 [global::__DynamicallyInvokable]
129 [global::__DynamicallyInvokable]
134 [global::__DynamicallyInvokable]
143 [global::__DynamicallyInvokable]
146 [global::__DynamicallyInvokable]
151 [global::__DynamicallyInvokable]
156 throw new ArgumentException(Res.GetString(
"XmlDisallowNegativeValues"),
"Order");
163 [global::__DynamicallyInvokable]
170 [global::__DynamicallyInvokable]
173 this.elementName = elementName;
178 [global::__DynamicallyInvokable]
187 [global::__DynamicallyInvokable]
190 this.elementName = elementName;
int Order
Gets or sets the explicit order in which the elements are serialized or deserialized.
string Namespace
Gets or sets the namespace assigned to the XML element that results when the class is serialized.
XmlElementAttribute(string elementName, Type type)
Initializes a new instance of the T:System.Xml.Serialization.XmlElementAttribute and specifies the na...
XmlSchemaForm
Indicates if attributes or elements need to be qualified with a namespace prefix.
Represents the base class for custom attributes.
bool IsNullable
Gets or sets a value that indicates whether the T:System.Xml.Serialization.XmlSerializer must seriali...
XmlSchemaForm Form
Gets or sets a value that indicates whether the element is qualified.
string ElementName
Gets or sets the name of the generated XML element.
XmlElementAttribute()
Initializes a new instance of the T:System.Xml.Serialization.XmlElementAttribute class.
string DataType
Gets or sets the XML Schema definition (XSD) data type of the XML element generated by the T:System....
XmlElementAttribute(Type type)
Initializes a new instance of the T:System.Xml.Serialization.XmlElementAttribute class and specifies ...
Represents type declarations: class types, interface types, array types, value types,...
AttributeTargets
Specifies the application elements on which it is valid to apply an attribute.
The exception that is thrown when one of the arguments provided to a method is not valid.
Indicates that a public field or property represents an XML element when the T:System....
XmlElementAttribute(string elementName)
Initializes a new instance of the T:System.Xml.Serialization.XmlElementAttribute class and specifies ...