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

◆ ExportElement()

XmlSchemaElement System.Xml.Serialization.XmlSchemaExporter.ExportElement ( ElementAccessor accessor)
inlineprivate

Definition at line 235 of file XmlSchemaExporter.cs.

236 {
237 if (!accessor.Mapping.IncludeInSchema && !accessor.Mapping.TypeDesc.IsRoot)
238 {
239 return null;
240 }
241 if (accessor.Any && accessor.Name.Length == 0)
242 {
244 }
246 if (xmlSchemaElement != null)
247 {
248 return xmlSchemaElement;
249 }
255 AddSchemaItem(xmlSchemaElement, accessor.Namespace, null);
257 return xmlSchemaElement;
258 }
virtual void Add(object key, object? value)
Definition Hashtable.cs:676
static string XmlIllegalWildcard
Definition SR.cs:1424
Definition SR.cs:7
void AddSchemaItem(XmlSchemaObject item, string ns, string referencingNs)
void ExportElementMapping(XmlSchemaElement element, Mapping mapping, string ns, bool isAny)

References System.Xml.Serialization.XmlSchemaExporter._elements, System.Collections.Hashtable.Add(), System.Xml.Serialization.XmlSchemaExporter.AddSchemaItem(), System.Xml.Dictionary, System.Xml.Serialization.XmlSchemaExporter.ExportElementMapping(), and System.SR.XmlIllegalWildcard.

Referenced by System.Xml.Serialization.XmlSchemaExporter.ExportMembersMapping(), and System.Xml.Serialization.XmlSchemaExporter.ExportTypeMapping().