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

◆ ImportTypeMembers()

MemberMapping[] System.Xml.Serialization.XmlSchemaImporter.ImportTypeMembers ( XmlSchemaType type,
string typeNs,
string identifier,
CodeIdentifiers members,
CodeIdentifiers membersScope,
INameScope elementsScope,
ref bool needExplicitOrder,
bool order,
bool allowUnboundedElements )
inlineprivate

Definition at line 613 of file XmlSchemaImporter.cs.

614 {
615 TypeItems typeItems = GetTypeItems(type);
616 bool flag = IsMixed(type);
617 if (flag)
618 {
620 while (!xmlSchemaType.DerivedFrom.IsEmpty)
621 {
622 xmlSchemaType = FindType(xmlSchemaType.DerivedFrom, (TypeFlags)48);
624 {
625 flag = false;
626 break;
627 }
628 }
629 }
630 if (typeItems.Particle != null)
631 {
633 }
634 for (int i = 0; i < typeItems.Attributes.Count; i++)
635 {
636 object obj = typeItems.Attributes[i];
638 {
640 }
642 {
643 XmlQualifiedName refName = ((XmlSchemaAttributeGroupRef)obj).RefName;
645 }
646 }
647 if (typeItems.AnyAttribute != null)
648 {
650 }
651 if (typeItems.baseSimpleType != null || (typeItems.Particle == null && flag))
652 {
653 ImportTextMember(members, membersScope, flag ? null : typeItems.baseSimpleType);
654 }
656 return (MemberMapping[])members.ToArray(typeof(MemberMapping));
657 }
void ImportAttributeGroupMembers(XmlSchemaAttributeGroup group, string identifier, CodeIdentifiers members, CodeIdentifiers membersScope, string ns)
void ImportXmlnsDeclarationsMember(XmlSchemaType type, CodeIdentifiers members, CodeIdentifiers membersScope)
static bool IsMixed(XmlSchemaType type)
TypeItems GetTypeItems(XmlSchemaType type)
XmlSchemaAttributeGroup FindAttributeGroup(XmlQualifiedName name)
void ImportAttributeMember(XmlSchemaAttribute attribute, string identifier, CodeIdentifiers members, CodeIdentifiers membersScope, string ns)
XmlSchemaType FindType(XmlQualifiedName name, TypeFlags flags)
void ImportGroup(XmlSchemaGroupBase group, string identifier, CodeIdentifiers members, CodeIdentifiers membersScope, INameScope elementsScope, string ns, bool mixed, ref bool needExplicitOrder, bool allowDuplicates, bool groupRepeats, bool allowUnboundedElements)
void ImportTextMember(CodeIdentifiers members, CodeIdentifiers membersScope, XmlQualifiedName simpleContentType)
void ImportAnyAttributeMember(XmlSchemaAnyAttribute any, CodeIdentifiers members, CodeIdentifiers membersScope)

References System.Collections.Generic.Dictionary< TKey, TValue >.Count, System.Xml.Dictionary, System.Xml.Serialization.XmlSchemaImporter.FindAttributeGroup(), System.Xml.Serialization.XmlSchemaImporter.FindType(), System.Xml.Serialization.XmlSchemaImporter.GetTypeItems(), System.Xml.Serialization.XmlSchemaImporter.ImportAnyAttributeMember(), System.Xml.Serialization.XmlSchemaImporter.ImportAttributeGroupMembers(), System.Xml.Serialization.XmlSchemaImporter.ImportAttributeMember(), System.Xml.Serialization.XmlSchemaImporter.ImportGroup(), System.Xml.Serialization.XmlSchemaImporter.ImportTextMember(), System.Xml.Serialization.XmlSchemaImporter.ImportXmlnsDeclarationsMember(), System.Xml.Serialization.XmlSchemaImporter.IsMixed(), System.obj, and System.type.

Referenced by System.Xml.Serialization.XmlSchemaImporter.ImportMembersType(), and System.Xml.Serialization.XmlSchemaImporter.ImportStructType().