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

◆ ImportArray()

ElementAccessor System.Xml.Serialization.XmlSchemaImporter.ImportArray ( XmlSchemaElement element,
string identifier,
string ns,
bool repeats )
inlineprivate

Definition at line 1221 of file XmlSchemaImporter.cs.

1222 {
1223 if (repeats)
1224 {
1225 return null;
1226 }
1227 if (element.SchemaType == null)
1228 {
1229 return null;
1230 }
1231 if (element.IsMultipleOccurrence)
1232 {
1233 return null;
1234 }
1235 XmlSchemaType schemaType = element.SchemaType;
1236 ArrayMapping arrayMapping = ImportArrayMapping(schemaType, identifier, ns, repeats);
1237 if (arrayMapping == null)
1238 {
1239 return null;
1240 }
1241 ElementAccessor elementAccessor = new ElementAccessor();
1242 elementAccessor.Name = element.Name;
1245 if (arrayMapping.TypeDesc.IsNullable)
1246 {
1248 }
1249 elementAccessor.Form = ElementForm(ns, element);
1250 return elementAccessor;
1251 }
ArrayMapping ImportArrayMapping(XmlSchemaType type, string identifier, string ns, bool repeats)
XmlSchemaForm ElementForm(string ns, XmlSchemaElement element)

References System.Xml.Dictionary, System.Xml.Serialization.XmlSchemaImporter.ElementForm(), System.Xml.Serialization.XmlSchemaImporter.ImportArrayMapping(), System.Xml.Schema.XmlSchemaParticle.IsMultipleOccurrence, System.Xml.Schema.XmlSchemaElement.IsNillable, System.Xml.Schema.XmlSchemaElement.Name, and System.Xml.Schema.XmlSchemaElement.SchemaType.

Referenced by System.Xml.Serialization.XmlSchemaImporter.ImportElementMember().