mirror of
https://github.com/BepInEx/mono.git
synced 2026-11-17 19:10:23 -10:00
* SoapReflectionImporter.cs: More fixes. * SoapSchemaExporter.cs: implemented. * SoapSchemaImporter.cs: Initial implementation. * TypeTranslator.cs: new methods for dealing with encoded arrays: GetArrayName and ParseArrayType * XmlCodeExporter.cs: Fix. When exporting a map, export all derived maps. * XmlMemberMapping.cs: Minor fixes. * XmlMembersMapping.cs: added some convenient constructors. * XmlSchemaExporter.cs: Added support for encoded format. * XmlSchemaImporter.cs: Added support for encoded format. * XmlSerializationReader.cs: changed some string literals by constants. Implemented ParseWsdlArrayType. * XmlSerializationReaderInterpreter.cs: Read typeArray attribute when serializing custom attributes. * XmlSerializationWriter.cs: Implemented WriteXmlAttribute. * XmlSerializationWriterInterpreter.cs: Use WriteXmlAttribute instead of WriteAttribute to write custom attributes. * XmlSerializer.cs: added some namespace constants. * XmlTypeMapping.cs: added GetSchemaArrayName method. svn path=/trunk/mcs/; revision=17856
81 lines
1.6 KiB
C#
81 lines
1.6 KiB
C#
//
|
|
// System.Xml.Serialization.XmlMembersMapping
|
|
//
|
|
// Author:
|
|
// Tim Coleman ([email protected])
|
|
// Lluis Sanchez Gual ([email protected])
|
|
//
|
|
// Copyright (C) Tim Coleman, 2002
|
|
//
|
|
|
|
using System.Reflection;
|
|
|
|
namespace System.Xml.Serialization {
|
|
public class XmlMembersMapping : XmlMapping {
|
|
|
|
string _elementName;
|
|
string _namespace;
|
|
bool _hasWrapperElement;
|
|
XmlMemberMapping[] _mapping;
|
|
|
|
internal XmlMembersMapping ()
|
|
{
|
|
}
|
|
|
|
internal XmlMembersMapping (XmlMemberMapping[] mapping): this ("", null, false, mapping)
|
|
{
|
|
}
|
|
|
|
internal XmlMembersMapping (string elementName, string ns, XmlMemberMapping[] mapping): this (elementName, ns, true, mapping)
|
|
{
|
|
}
|
|
|
|
internal XmlMembersMapping (string elementName, string ns, bool hasWrapperElement, XmlMemberMapping[] mapping)
|
|
{
|
|
_elementName = elementName;
|
|
_namespace = ns;
|
|
_hasWrapperElement = hasWrapperElement;
|
|
_mapping = mapping;
|
|
|
|
ClassMap map = new ClassMap ();
|
|
foreach (XmlMemberMapping mm in mapping)
|
|
map.AddMember (mm.TypeMapMember);
|
|
ObjectMap = map;
|
|
}
|
|
|
|
#region Properties
|
|
|
|
public int Count {
|
|
get { return _mapping.Length; }
|
|
}
|
|
|
|
public string ElementName {
|
|
get { return _elementName; }
|
|
}
|
|
|
|
public XmlMemberMapping this [int index] {
|
|
get { return _mapping[index]; }
|
|
}
|
|
|
|
public string Namespace {
|
|
get { return _namespace; }
|
|
}
|
|
|
|
public string TypeName {
|
|
[MonoTODO]
|
|
get { throw new NotImplementedException (); }
|
|
}
|
|
|
|
public string TypeNamespace {
|
|
[MonoTODO]
|
|
get { throw new NotImplementedException (); }
|
|
}
|
|
|
|
internal bool HasWrapperElement {
|
|
get { return _hasWrapperElement; }
|
|
}
|
|
|
|
#endregion // Properties
|
|
}
|
|
}
|