mirror of
https://github.com/BepInEx/mono.git
synced 2026-11-17 19:10:23 -10:00
* TypeTranslator.cs: added IsPrimitive() method * TypeMapping.cs: Added RelatedMaps property that returns all maps directly or indirectly used by that one. Also added Format property, that can be literal or encoded. * XmlReflectionImporter.cs: little fixes. Moved some methods to ReflectionHelper. * XmlReflectionMember.cs: added constructor that accepts SoapAttributes * XmlSerializationReader.cs: implemented many methods needed to support encoded format. * XmlSerializationReaderInterpreter.cs: added support for encoded format. * XmlSerializationWriter.cs: added support for encoded format. * XmlSerializationWriterInterpreter.cs: added support for encoded format. * XmlTypeMapElementInfo.cs: added some properties needed to support encoded format * XmlTypeMapMemberAttribute.cs: added MappedType property (enum values can be attributes, and a map is needed for them). * XmlTypeMapMemberElement.cs: small fixes. * XmlTypeMapping.cs: added some properties and methods needed to support encoded format * ReflectionHelper.cs: added. Has some methods shared by the reflection importers. svn path=/trunk/mcs/; revision=15130
51 lines
758 B
C#
51 lines
758 B
C#
//
|
|
// XmlMapping.cs:
|
|
//
|
|
// Author:
|
|
// John Donagher ([email protected])
|
|
// Lluis Sanchez Gual ([email protected])
|
|
//
|
|
// (C) 2002 John Donagher
|
|
//
|
|
|
|
using System;
|
|
using System.Collections;
|
|
|
|
namespace System.Xml.Serialization
|
|
{
|
|
public abstract class XmlMapping
|
|
{
|
|
ObjectMap map;
|
|
ArrayList relatedMaps;
|
|
SerializationFormat format;
|
|
|
|
internal XmlMapping ()
|
|
{
|
|
}
|
|
|
|
internal ObjectMap ObjectMap
|
|
{
|
|
get { return map; }
|
|
set { map = value; }
|
|
}
|
|
|
|
internal ArrayList RelatedMaps
|
|
{
|
|
get { return relatedMaps; }
|
|
set { relatedMaps = value; }
|
|
}
|
|
|
|
internal SerializationFormat Format
|
|
{
|
|
get { return format; }
|
|
set { format = value; }
|
|
}
|
|
}
|
|
|
|
internal class ObjectMap
|
|
{
|
|
}
|
|
|
|
internal enum SerializationFormat { Encoded, Literal }
|
|
}
|