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

◆ ImportAnyMember()

MemberMapping System.Xml.Serialization.XmlSchemaImporter.ImportAnyMember ( XmlSchemaAny any,
string identifier,
CodeIdentifiers members,
CodeIdentifiers membersScope,
INameScope elementsScope,
string ns,
ref bool mixed,
ref bool needExplicitOrder,
bool allowDuplicates )
inlineprivate

Definition at line 1150 of file XmlSchemaImporter.cs.

1151 {
1152 ElementAccessor[] array = ImportAny(any, !mixed, ns);
1154 MemberMapping memberMapping = new MemberMapping();
1156 memberMapping.Name = membersScope.MakeRightCase("Any");
1159 memberMapping.TypeDesc = array[0].Mapping.TypeDesc;
1160 bool flag = any.IsMultipleOccurrence;
1161 if (mixed)
1162 {
1163 SpecialMapping specialMapping = new SpecialMapping();
1164 specialMapping.TypeDesc = base.Scope.GetTypeDesc(typeof(XmlNode));
1167 TextAccessor textAccessor = new TextAccessor();
1170 flag = true;
1171 mixed = false;
1172 }
1173 if (flag)
1174 {
1175 memberMapping.TypeDesc = memberMapping.TypeDesc.CreateArrayTypeDesc();
1176 }
1177 return memberMapping;
1178 }
void Add(TKey key, TValue value)
void AddScopeElements(INameScope scope, ElementAccessor[] elements, ref bool duplicateElements, bool allowDuplicates)
ElementAccessor[] ImportAny(XmlSchemaAny any, bool makeElement, string targetNamespace)

References System.Collections.Generic.Dictionary< TKey, TValue >.Add(), System.Xml.Serialization.XmlSchemaImporter.AddScopeElements(), System.array, System.Xml.Dictionary, and System.Xml.Serialization.XmlSchemaImporter.ImportAny().

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