5 [global::__DynamicallyInvokable]
8 private string elementName;
12 private string dataType;
14 private bool nullable =
true;
16 private bool nullableSpecified;
20 [global::__DynamicallyInvokable]
23 [global::__DynamicallyInvokable]
26 if (elementName !=
null)
32 [global::__DynamicallyInvokable]
41 [global::__DynamicallyInvokable]
44 [global::__DynamicallyInvokable]
49 [global::__DynamicallyInvokable]
58 [global::__DynamicallyInvokable]
61 [global::__DynamicallyInvokable]
70 [global::__DynamicallyInvokable]
80 [global::__DynamicallyInvokable]
83 [global::__DynamicallyInvokable]
88 [global::__DynamicallyInvokable]
92 nullableSpecified =
true;
96 internal bool IsNullableSpecified => nullableSpecified;
98 internal string Key => ((ns ==
null) ?
string.Empty : ns) +
":" +
ElementName +
":" + nullable.ToString();
101 [global::__DynamicallyInvokable]
108 [global::__DynamicallyInvokable]
111 this.elementName = elementName;
Represents the base class for custom attributes.
string DataType
Gets or sets the XSD data type of the XML root element.
XmlRootAttribute()
Initializes a new instance of the T:System.Xml.Serialization.XmlRootAttribute class.
Controls XML serialization of the attribute target as an XML root element.
XmlRootAttribute(string elementName)
Initializes a new instance of the T:System.Xml.Serialization.XmlRootAttribute class and specifies the...
AttributeTargets
Specifies the application elements on which it is valid to apply an attribute.
string Namespace
Gets or sets the namespace for the XML root element.
bool IsNullable
Gets or sets a value that indicates whether the T:System.Xml.Serialization.XmlSerializer must seriali...
string ElementName
Gets or sets the name of the XML element that is generated and recognized by the T:System....