18 internal override bool IsEmpty =>
true;
21 private decimal minOccurs = decimal.One;
23 private decimal maxOccurs = decimal.One;
36 if ((flags & Occurs.Min) != 0)
46 minOccurs = decimal.One;
51 if (minOccurs < decimal.Zero)
66 if ((flags & Occurs.Max) != 0)
68 if (!(maxOccurs == decimal.MaxValue))
80 maxOccurs = decimal.One;
84 if (value ==
"unbounded")
86 maxOccurs = decimal.MaxValue;
91 if (maxOccurs < decimal.Zero)
95 if (maxOccurs == decimal.Zero && (flags & Occurs.Min) == Occurs.None)
97 minOccurs =
default(decimal);
115 if (value < decimal.Zero || value != decimal.Truncate(value))
135 if (value < decimal.Zero || value != decimal.Truncate(value))
140 if (maxOccurs == decimal.Zero && (flags & Occurs.Min) == Occurs.None)
142 minOccurs =
default(decimal);
148 internal virtual bool IsEmpty => maxOccurs == decimal.Zero;
150 internal bool IsMultipleOccurrence => maxOccurs > decimal.One;
152 internal virtual string NameString =>
string.Empty;
157 if (xmlSchemaElement !=
null)
161 XmlSchemaAny xmlSchemaAny =
this as XmlSchemaAny;
162 if (xmlSchemaAny !=
null)
164 string @
namespace = xmlSchemaAny.Namespace;
165 @
namespace = ((@namespace ==
null) ?
string.Empty : @
namespace.Trim());
166 return new XmlQualifiedName(
"*", (@
namespace.Length == 0) ?
"##any" : @
namespace);
168 return XmlQualifiedName.Empty;
decimal MaxOccurs
Gets or sets the maximum number of times the particle can occur.
No initialization action.
Represents an attribute. Valid and default values for the attribute are defined in a document type de...
static string ToString(bool value)
Converts the T:System.Boolean to a T:System.String.
The base class for any element that can contain annotation elements.
decimal MinOccurs
Gets or sets the minimum number of times the particle can occur.
string MinOccursString
Gets or sets the number as a string value. The minimum number of times the particle can occur.
Represents an XML qualified name.
XmlQualifiedName QualifiedName
Gets the actual qualified name for the given element.
Represents the element element from XML Schema as specified by the World Wide Web Consortium (W3C)....
string MaxOccursString
Gets or sets the number as a string value. Maximum number of times the particle can occur.
Abstract class for that is the base class for all particle types (e.g. T:System.Xml....
Returns detailed information about the schema exception.
Encodes and decodes XML names, and provides methods for converting between common language runtime ty...