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

◆ ImportSubstitutionGroupMember()

bool System.Xml.Serialization.XmlSchemaImporter.ImportSubstitutionGroupMember ( XmlSchemaElement element,
string identifier,
CodeIdentifiers members,
CodeIdentifiers membersScope,
string ns,
bool repeats,
ref bool needExplicitOrder,
bool allowDuplicates )
inlineprivate

Definition at line 1082 of file XmlSchemaImporter.cs.

1083 {
1085 if (equivalentElements.Length == 0)
1086 {
1087 return false;
1088 }
1090 for (int i = 0; i < equivalentElements.Length; i++)
1091 {
1093 }
1094 if (!element.IsAbstract)
1095 {
1096 xmlSchemaChoice.Items.Add(element);
1097 }
1098 identifier = ((identifier.Length != 0) ? (identifier + CodeIdentifier.MakePascal(Accessor.UnescapeName(element.Name))) : CodeIdentifier.MakeValid(Accessor.UnescapeName(element.Name)));
1100 return true;
1101 }
void Add(TKey key, TValue value)
XmlSchemaElement[] GetEquivalentElements(XmlSchemaElement element)
MemberMapping ImportChoiceGroup(XmlSchemaGroupBase group, string identifier, CodeIdentifiers members, CodeIdentifiers membersScope, INameScope elementsScope, string ns, bool groupRepeats, ref bool needExplicitOrder, bool allowDuplicates)

References System.Collections.Generic.Dictionary< TKey, TValue >.Add(), System.Xml.Dictionary, System.Xml.Serialization.XmlSchemaImporter.GetEquivalentElements(), System.Xml.Serialization.XmlSchemaImporter.ImportChoiceGroup(), System.Xml.Schema.XmlSchemaElement.IsAbstract, System.Xml.Serialization.CodeIdentifier.MakePascal(), System.Xml.Serialization.CodeIdentifier.MakeValid(), System.Xml.Schema.XmlSchemaElement.Name, and System.Xml.Serialization.Accessor.UnescapeName().

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