Terraria v1.4.4.9
Terraria source code documentation
All Classes Namespaces Files Functions Variables Enumerations Enumerator Properties Events Macros

◆ ImportXmlnsDeclarationsMember()

void System.Xml.Serialization.XmlSchemaImporter.ImportXmlnsDeclarationsMember ( XmlSchemaType type,
CodeIdentifiers members,
CodeIdentifiers membersScope )
inlineprivate

Definition at line 1580 of file XmlSchemaImporter.cs.

1581 {
1583 {
1584 TypeDesc typeDesc = base.Scope.GetTypeDesc(typeof(XmlSerializerNamespaces));
1585 StructMapping structMapping = new StructMapping();
1587 structMapping.TypeName = structMapping.TypeDesc.Name;
1588 structMapping.Members = Array.Empty<MemberMapping>();
1591 ElementAccessor elementAccessor = new ElementAccessor();
1593 MemberMapping memberMapping = new MemberMapping();
1594 memberMapping.Elements = new ElementAccessor[1] { elementAccessor };
1595 memberMapping.Name = CodeIdentifier.MakeValid((xmlnsMemberName == null) ? "Namespaces" : xmlnsMemberName);
1599 memberMapping.Xmlns = new XmlnsAccessor();
1600 memberMapping.Ignore = true;
1601 }
1602 }
void Add(TKey key, TValue value)
bool KeepXmlnsDeclarations(XmlSchemaType type, out string xmlnsMemberName)

References System.Collections.Generic.Dictionary< TKey, TValue >.Add(), System.Xml.Dictionary, System.Xml.Serialization.XmlSchemaImporter.KeepXmlnsDeclarations(), System.Xml.Serialization.CodeIdentifier.MakeValid(), and System.type.

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