mirror of
https://github.com/BepInEx/mono.git
synced 2026-11-16 17:10:20 -10:00
* ReflectionHelper.cs: New method for generating map keys. * SerializationCodeGenerator.cs: Added support for generating the serializer contract class, needed for 2.0. * SerializationSource.cs: Use Type[] instead of ArrayList for storing extra types. * SoapReflectionImporter.cs, XmlReflectionImporter.cs: Assign extra types as Type[]. Added check that makes sure that enums being serialized are public. * XmlMapping.cs: Added internal GetKey method. * XmlSerializer.cs: Added support for IXmlSerializerImplementation. Added first bits to support loading of serializers from pre-generated assemblies. * XmlSerializerFactory.cs: Mostly implemeted. svn path=/trunk/mcs/; revision=30867
54 lines
1.6 KiB
C#
54 lines
1.6 KiB
C#
//
|
|
// System.Xml.Serialization.IXmlSerializerImplementation.cs
|
|
//
|
|
// Author:
|
|
// Lluis Sanchez Gual ([email protected])
|
|
//
|
|
// Copyright (C) Novell, Inc., 2004
|
|
//
|
|
|
|
//
|
|
// Permission is hereby granted, free of charge, to any person obtaining
|
|
// a copy of this software and associated documentation files (the
|
|
// "Software"), to deal in the Software without restriction, including
|
|
// without limitation the rights to use, copy, modify, merge, publish,
|
|
// distribute, sublicense, and/or sell copies of the Software, and to
|
|
// permit persons to whom the Software is furnished to do so, subject to
|
|
// the following conditions:
|
|
//
|
|
// The above copyright notice and this permission notice shall be
|
|
// included in all copies or substantial portions of the Software.
|
|
//
|
|
// THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
|
|
// EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
|
|
// MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
|
|
// NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE
|
|
// LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION
|
|
// OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION
|
|
// WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
|
|
//
|
|
|
|
using System;
|
|
using System.Collections;
|
|
|
|
namespace System.Xml.Serialization
|
|
{
|
|
#if NET_2_0
|
|
public
|
|
#else
|
|
internal
|
|
#endif
|
|
|
|
interface IXmlSerializerImplementation
|
|
{
|
|
XmlSerializationReader Reader {get;}
|
|
Hashtable ReadMethods {get;}
|
|
Hashtable TypedSerializers {get;}
|
|
Hashtable WriteMethods {get;}
|
|
XmlSerializationWriter Writer {get;}
|
|
|
|
bool CanSerialize (Type type);
|
|
}
|
|
}
|
|
|