Terraria v1.4.4.9
Terraria source code documentation
Loading...
Searching...
No Matches

◆ MinOccursString

string? System.Xml.Schema.XmlSchemaParticle.MinOccursString
getsetinherited

Definition at line 29 of file XmlSchemaParticle.cs.

30 {
31 get
32 {
33 if ((_flags & Occurs.Min) != 0)
34 {
35 return XmlConvert.ToString(_minOccurs);
36 }
37 return null;
38 }
39 set
40 {
41 if (value == null)
42 {
43 _minOccurs = 1m;
44 _flags &= ~Occurs.Min;
45 return;
46 }
47 _minOccurs = XmlConvert.ToInteger(value);
48 if (_minOccurs < 0m)
49 {
50 throw new XmlSchemaException(System.SR.Sch_MinOccursInvalidXsd, string.Empty);
51 }
52 _flags |= Occurs.Min;
53 }
54 }
static string Sch_MinOccursInvalidXsd
Definition SR.cs:754
Definition SR.cs:7

Referenced by System.Xml.Schema.Preprocessor.PreprocessElement(), and System.Xml.Schema.SchemaCollectionPreprocessor.PreprocessElement().