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

◆ IsDataSet()

static bool System.Xml.Serialization.XmlSchemas.IsDataSet ( XmlSchema schema)
inlinestatic

Definition at line 362 of file XmlSchemas.cs.

363 {
364 foreach (XmlSchemaObject item in schema.Items)
365 {
366 if (!(item is XmlSchemaElement))
367 {
368 continue;
369 }
371 if (xmlSchemaElement.UnhandledAttributes == null)
372 {
373 continue;
374 }
375 XmlAttribute[] unhandledAttributes = xmlSchemaElement.UnhandledAttributes;
376 foreach (XmlAttribute xmlAttribute in unhandledAttributes)
377 {
378 if (xmlAttribute.LocalName == "IsDataSet" && xmlAttribute.NamespaceURI == "urn:schemas-microsoft-com:xml-msdata" && (xmlAttribute.Value == "True" || xmlAttribute.Value == "true" || xmlAttribute.Value == "1"))
379 {
380 return true;
381 }
382 }
383 }
384 return false;
385 }

References System.item.

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