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

◆ CreateNewElementforChoice()

XmlSchemaElement System.Xml.Schema.XmlSchemaInference.CreateNewElementforChoice ( XmlSchemaElement copyElement)
inlineprivate

Definition at line 2397 of file XmlSchemaInference.cs.

2398 {
2399 XmlSchemaElement xmlSchemaElement = new XmlSchemaElement();
2407 if (copyElement.IsNillable)
2408 {
2410 }
2421 if (copyElement.MinOccurs != 1m && Occurrence == InferenceOption.Relaxed)
2422 {
2424 }
2425 if (copyElement.MaxOccurs != 1m)
2426 {
2428 }
2429 return xmlSchemaElement;
2430 }

References System.Xml.Schema.XmlSchemaAnnotated.Annotation, System.Xml.Schema.XmlSchemaElement.Block, System.Xml.Schema.XmlSchemaElement.DefaultValue, System.Xml.Schema.XmlSchemaElement.Final, System.Xml.Schema.XmlSchemaElement.FixedValue, System.Xml.Schema.XmlSchemaElement.Form, System.Xml.Schema.XmlSchemaAnnotated.Id, System.Xml.Schema.XmlSchemaElement.IsNillable, System.Xml.Schema.XmlSchemaObject.LineNumber, System.Xml.Schema.XmlSchemaObject.LinePosition, System.Xml.Schema.XmlSchemaParticle.MaxOccurs, System.Xml.Schema.XmlSchemaParticle.MinOccurs, System.Xml.Schema.XmlSchemaElement.Name, System.Xml.Schema.XmlSchemaObject.Namespaces, System.Xml.Schema.XmlSchemaElement.RefName, System.Xml.Schema.XmlSchemaElement.SchemaType, System.Xml.Schema.XmlSchemaElement.SchemaTypeName, System.Xml.Schema.XmlSchemaObject.SourceUri, System.Xml.Schema.XmlSchemaElement.SubstitutionGroup, and System.Xml.Schema.XmlSchemaAnnotated.UnhandledAttributes.