7 [global::__DynamicallyInvokable]
24 private bool xmlIgnore;
28 private object xmlDefaultValue;
38 private static volatile Type ignoreAttributeType;
40 internal XmlAttributeFlags XmlFlags
44 XmlAttributeFlags xmlAttributeFlags = (XmlAttributeFlags)0;
45 if (xmlElements.
Count > 0)
47 xmlAttributeFlags |= XmlAttributeFlags.Elements;
49 if (xmlArrayItems.
Count > 0)
51 xmlAttributeFlags |= XmlAttributeFlags.ArrayItems;
53 if (xmlAnyElements.
Count > 0)
55 xmlAttributeFlags |= XmlAttributeFlags.AnyElements;
59 xmlAttributeFlags |= XmlAttributeFlags.Array;
61 if (xmlAttribute !=
null)
63 xmlAttributeFlags |= XmlAttributeFlags.Attribute;
67 xmlAttributeFlags |= XmlAttributeFlags.Text;
71 xmlAttributeFlags |= XmlAttributeFlags.Enum;
75 xmlAttributeFlags |= XmlAttributeFlags.Root;
79 xmlAttributeFlags |= XmlAttributeFlags.Type;
81 if (xmlAnyAttribute !=
null)
83 xmlAttributeFlags |= XmlAttributeFlags.AnyAttribute;
85 if (xmlChoiceIdentifier !=
null)
87 xmlAttributeFlags |= XmlAttributeFlags.ChoiceIdentifier;
91 xmlAttributeFlags |= XmlAttributeFlags.XmlnsDeclarations;
93 return xmlAttributeFlags;
97 private static Type IgnoreAttribute
101 if (ignoreAttributeType ==
null)
103 ignoreAttributeType = typeof(
object).
Assembly.GetType(
"System.XmlIgnoreMemberAttribute");
104 if (ignoreAttributeType ==
null)
109 return ignoreAttributeType;
115 [global::__DynamicallyInvokable]
118 [global::__DynamicallyInvokable]
127 [global::__DynamicallyInvokable]
130 [global::__DynamicallyInvokable]
135 [global::__DynamicallyInvokable]
138 xmlAttribute = value;
144 [global::__DynamicallyInvokable]
147 [global::__DynamicallyInvokable]
152 [global::__DynamicallyInvokable]
161 [global::__DynamicallyInvokable]
164 [global::__DynamicallyInvokable]
169 [global::__DynamicallyInvokable]
178 [global::__DynamicallyInvokable]
181 [global::__DynamicallyInvokable]
186 [global::__DynamicallyInvokable]
195 [global::__DynamicallyInvokable]
198 [global::__DynamicallyInvokable]
201 return xmlArrayItems;
207 [global::__DynamicallyInvokable]
210 [global::__DynamicallyInvokable]
213 return xmlDefaultValue;
215 [global::__DynamicallyInvokable]
218 xmlDefaultValue = value;
225 [global::__DynamicallyInvokable]
228 [global::__DynamicallyInvokable]
233 [global::__DynamicallyInvokable]
242 [global::__DynamicallyInvokable]
245 [global::__DynamicallyInvokable]
250 [global::__DynamicallyInvokable]
259 [global::__DynamicallyInvokable]
262 [global::__DynamicallyInvokable]
267 [global::__DynamicallyInvokable]
276 [global::__DynamicallyInvokable]
279 [global::__DynamicallyInvokable]
282 return xmlAnyElements;
288 [global::__DynamicallyInvokable]
291 [global::__DynamicallyInvokable]
294 return xmlAnyAttribute;
296 [global::__DynamicallyInvokable]
299 xmlAnyAttribute = value;
305 [global::__DynamicallyInvokable]
308 [global::__DynamicallyInvokable]
311 return xmlChoiceIdentifier;
318 [global::__DynamicallyInvokable]
321 [global::__DynamicallyInvokable]
326 [global::__DynamicallyInvokable]
334 [global::__DynamicallyInvokable]
345 for (
int i = 0; i < customAttributes.Length; i++)
363 if ((xmlAnyElementAttribute2.
Name ==
null || xmlAnyElementAttribute2.
Name.Length == 0) && xmlAnyElementAttribute2.NamespaceSpecified && xmlAnyElementAttribute2.
Namespace ==
null)
365 xmlAnyElementAttribute = xmlAnyElementAttribute2;
416 xmlArrayItems.
Clear();
417 xmlAnyElements.
Clear();
418 xmlDefaultValue =
null;
424 xmlAnyAttribute =
null;
425 xmlChoiceIdentifier =
null;
428 else if (xmlAnyElementAttribute !=
null)
430 xmlAnyElements.
Add(xmlAnyElementAttribute);
437 if (customAttributes.Length == 0)
441 return customAttributes[0];
Specifies the default value for a property.
XmlAttributes(ICustomAttributeProvider provider)
Initializes a new instance of the T:System.Xml.Serialization.XmlAttributes class and customizes how t...
int Add(XmlAnyElementAttribute attribute)
Adds an T:System.Xml.Serialization.XmlAnyElementAttribute to the collection.
object [] GetCustomAttributes(Type attributeType, bool inherit)
Returns an array of custom attributes defined on this member, identified by type, or an empty array i...
XmlChoiceIdentifierAttribute XmlChoiceIdentifier
Gets or sets an object that allows you to distinguish between a set of choices.
Specifies that the target property, parameter, return value, or class member contains prefixes associ...
Marks the program elements that are no longer in use. This class cannot be inherited.
XmlArrayItemAttributes XmlArrayItems
Gets or sets a collection of objects that specify how the T:System.Xml.Serialization....
Specifies that the member (a field that returns an array of T:System.Xml.XmlElement or T:System....
int Add(XmlArrayItemAttribute attribute)
Adds an T:System.Xml.Serialization.XmlArrayItemAttribute to the collection.
XmlElementAttributes XmlElements
Gets a collection of objects that specify how the T:System.Xml.Serialization.XmlSerializer serializes...
Represents an attribute. Valid and default values for the attribute are defined in a document type de...
Instructs the M:System.Xml.Serialization.XmlSerializer.Serialize(System.IO.TextWriter,...
bool Xmlns
Gets or sets a value that specifies whether to keep all namespace declarations when an object contain...
XmlAnyElementAttributes XmlAnyElements
Gets the collection of T:System.Xml.Serialization.XmlAnyElementAttribute objects to override.
object XmlDefaultValue
Gets or sets the default value of an XML element or attribute.
Represents a collection of T:System.Xml.Serialization.XmlAnyElementAttribute objects.
Specifies that the T:System.Xml.Serialization.XmlSerializer must serialize the class member as an XML...
Controls XML serialization of the attribute target as an XML root element.
XmlTypeAttribute XmlType
Gets or sets an object that specifies how the T:System.Xml.Serialization.XmlSerializer serializes a c...
Specifies that the member (a field that returns an array of T:System.Xml.XmlAttribute objects) can co...
string Namespace
Gets or sets the XML namespace generated in the XML document.
abstract Assembly Assembly
Gets the T:System.Reflection.Assembly in which the type is declared. For generic types,...
string Name
Gets or sets the XML element name.
Represents type declarations: class types, interface types, array types, value types,...
XmlArrayAttribute XmlArray
Gets or sets an object that specifies how the T:System.Xml.Serialization.XmlSerializer serializes a p...
XmlEnumAttribute XmlEnum
Gets or sets an object that specifies how the T:System.Xml.Serialization.XmlSerializer serializes an ...
Represents the text content of an element or attribute.
Represents a collection of attribute objects that control how the T:System.Xml.Serialization....
int Add(XmlElementAttribute attribute)
Adds an T:System.Xml.Serialization.XmlElementAttribute to the collection.
int Count
Gets the number of elements contained in the T:System.Collections.CollectionBase instance....
Represents an attribute that specifies the derived types that the T:System.Xml.Serialization....
Controls how the T:System.Xml.Serialization.XmlSerializer serializes an enumeration member.
Specifies that the member can be further detected by using an enumeration.
void Clear()
Removes all objects from the T:System.Collections.CollectionBase instance. This method cannot be over...
Represents a collection of T:System.Xml.Serialization.XmlElementAttribute objects used by the T:Syste...
XmlAnyAttributeAttribute XmlAnyAttribute
Gets or sets the T:System.Xml.Serialization.XmlAnyAttributeAttribute to override.
Controls the XML schema that is generated when the attribute target is serialized by the T:System....
Specifies that the T:System.Xml.Serialization.XmlSerializer must serialize a particular class member ...
Indicates that a public field or property represents an XML element when the T:System....
Indicates to the T:System.Xml.Serialization.XmlSerializer that the member must be treated as XML text...
XmlRootAttribute XmlRoot
Gets or sets an object that specifies how the T:System.Xml.Serialization.XmlSerializer serializes a c...
XmlAttributes()
Initializes a new instance of the T:System.Xml.Serialization.XmlAttributes class.
Provides custom attributes for reflection objects that support them.
Represents a collection of T:System.Xml.Serialization.XmlArrayItemAttribute objects.
bool XmlIgnore
Gets or sets a value that specifies whether or not the T:System.Xml.Serialization....