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

◆ MakeExistingAttributesOptional()

void System.Xml.Schema.XmlSchemaInference.MakeExistingAttributesOptional ( XmlSchemaComplexType ct,
XmlSchemaObjectCollection attributesInInstance )
inlinepackage

Definition at line 1169 of file XmlSchemaInference.cs.

1170 {
1171 if (ct == null)
1172 {
1173 throw new XmlSchemaInferenceException(System.SR.SchInf_noct, 0, 0);
1174 }
1175 if (ct.ContentModel != null)
1176 {
1177 XmlSchemaSimpleContentExtension xmlSchemaSimpleContentExtension = CheckSimpleContentExtension(ct);
1179 }
1180 else
1181 {
1183 }
1184 }
static string SchInf_noct
Definition SR.cs:1224
Definition SR.cs:7
void SwitchUseToOptional(XmlSchemaObjectCollection attributes, XmlSchemaObjectCollection attributesInInstance)
XmlSchemaSimpleContentExtension CheckSimpleContentExtension(XmlSchemaComplexType ct)

References System.Xml.Schema.XmlSchemaComplexType.Attributes, System.Xml.Schema.XmlSchemaSimpleContentExtension.Attributes, System.Xml.Schema.XmlSchemaComplexType.ContentModel, and System.SR.SchInf_noct.