16 Commits
Author SHA1 Message Date
Zoltan Varga 0985d4aa4b [bcl] Remove NET_2_0 defines from the class libs. This has been done using: unifdef -t -DNET_2_0 -o <filename> <filename>. 2015-01-13 15:29:38 -05:00
Marek Safar 95a6e77b85 Warnings cleanup
svn path=/trunk/mcs/; revision=111839
2008-08-28 16:53:31 +00:00
Atsushi Eno ef23f4f0cc 2007-04-20 Atsushi Enomoto <[email protected]>
* XmlTypeMapping.cs, ReflectionHelper.cs,
	  XmlSerializationReaderInterpreter.cs, SerializationCodeGenerator.cs:
	  support instantiation by private constructor.

	* XmlSerializerTests.cs :
	  Added test for serializing private-constructor-only class.


svn path=/trunk/mcs/; revision=76003
2007-04-20 11:13:46 +00:00
Gert Driesen 34560e9e64 * CodeExporter.cs: Set eol-style to native.
* CodeGenerationOptions.cs: Same.
* CodeIdentifier.cs: Same.
* ImportContext.cs: Same.
* IXmlSerializable.cs: Same.
* IXmlSerializerImplementation.cs: Same.
* IXmlTextParser.cs: Same.
* MapCodeGenerator.cs: Same.
* ReflectionHelper.cs: Same. Fixed line endings.
* SchemaImporter.cs: Same.
* SchemaImporterExtensionCollection.cs: Same.
* SchemaImporterExtension.cs: Same.
* SchemaTypes.cs: Same.
* SerializationCodeGeneratorConfiguration.cs: Same.
* SerializationCodeGenerator.cs: Same.
* SerializationSource.cs: Same.
* SoapReflectionImporter.cs: Same.
* SoapSchemaExporter.cs: Same.
* TypeData.cs: Same.
* TypeTranslator.cs: Same.
* UnreferencedObjectEventHandler.cs: Same.
* XmlAnyElementAttribute.cs: Same.
* XmlArrayItemAttribute.cs: Same.
* XmlAttributeEventHandler.cs: Same.
* XmlAttributeOverrides.cs: Same.
* XmlAttributes.cs: Same.
* XmlDeserializationEvents.cs: Same.
* XmlElementEventHandler.cs: Same.
* XmlIncludeAttribute.cs: Same.
* XmlMapping.cs: Same.
* XmlMemberMapping.cs: Same.
* XmlMembersMapping.cs: Same.
* XmlNodeEventHandler.cs: Same.
* XmlReflectionImporter.cs: Same.
* XmlSchemaExporter.cs: Same.
* XmlSchemaProviderAttribute.cs: Same.
* XmlSerializationCollectionFixupCallback.cs: Same.
* XmlSerialiationFixupCallback.cs: Same.
* XmlSerializationGeneratedCode.cs: Same.
* XmlSerializationReadCallback.cs: Same.
* XmlSerializationReader.cs: Same.
* XmlSerializationReaderInterpreter.cs: Same.
* XmlSerializationWriteCallback.cs: Same.
* XmlSerializationWriterInterpreter.cs: Same.
* XmlSerializerAssemblyAttribute.cs: Same.
* XmlSerializer.cs: Same.
* XmlSerializerFactory.cs: Same.
* XmlSerializerVersionAttribute.cs: Same.
* XmlTypeMapElementInfo.cs: Same.
* XmlTypeMapMemberAttribute.cs: Same.
* XmlTypeMapMember.cs: Same.
* XmlTypeMapMemberNamespaces.cs: Same.


svn path=/trunk/mcs/; revision=56798
2006-02-11 12:52:46 +00:00
Lluis Sanchez 427c682fdd 2005-08-24 Lluis Sanchez Gual <[email protected]>
* TypeData.cs: Reset the hasPublicConstructor flag when the
	type is an interface.
	* XmlSerializationWriterInterpreter.cs: Get the Count property
	from the object type instead of the property type (it didn't
	work for IList). 
	* ReflectionHelper.cs: In CheckSerializableType, don't trow
	if the type is a collection interface. All this fixes
	bug #75855.


svn path=/trunk/mcs/; revision=48799
2005-08-24 17:55:22 +00:00
Lluis Sanchez b48885d877 2005-03-04 Lluis Sanchez Gual <[email protected]>
* ReflectionHelper.cs: Avoid endless loop.
	* XmlSchemas.cs: Added null check. Patches from MainSoft.


svn path=/trunk/mcs/; revision=41458
2005-03-04 18:13:03 +00:00
Lluis Sanchez d996305ce2 * ReflectionHelper.cs, SoapReflectionImporter.cs, XmlReflectionImporter.cs:
In CheckSerializableType, add the option of ignoring types with private
	  constructors. Some kind of lists can be deserialized
	  even if the constructor is private. See bug #61464.
	* SerializationCodeGenerator.cs, XmlSerializationReaderInterpreter.cs:
	  Before creating a list, check that it has a public constructor.
	* TypeData.cs: Added HasPublicConstructor property.

svn path=/trunk/mcs/; revision=33230
2004-09-02 16:03:15 +00:00
Lluis Sanchez fd0fcfd2bc * ReflectionHelper.cs: Fixed bug when registering a map as exported.
Thanks to Juan C. Olivares.

svn path=/trunk/mcs/; revision=31033
2004-07-12 07:50:44 +00:00
Lluis Sanchez a8ccb82ef3 * IXmlSerializerImplementation.cs: Compile as internal in NET_1_1.
* 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
2004-07-08 13:39:12 +00:00
Lluis Sanchez 360208e654 * ReflectionHelper.cs: Correctly detect private types.
* XmlCodeExporter.cs: Implemented missing method.
	* XmlSchemaImporter.cs: Allow import of root primitive types.

svn path=/trunk/mcs/; revision=30104
2004-06-22 09:51:50 +00:00
Duncan Mak 8fa6e766dd Add MIT license to System.XML.DLL
svn path=/trunk/mcs/; revision=30055
2004-06-21 18:07:31 +00:00
Lluis Sanchez 304353fc3f * SerializationCodeGenerator.cs, XmlSerializationReaderInterpreter.cs:
When deserializing an encoded method response, if the return type of the
	  method is Object, assign to it the first element of the message, whatever
	  it is.
	* XmlSerializationReader.cs:
	* SoapReflectionImporter.cs, XmlReflectionImporter.cs: Set IsReturnValue of
	  the imported member.
	* TypeTranslator.cs: Added method to safely get a primitive TypeData.
	* XmlSerializationReader.cs: Don't throw an exception when the CLR type for
	  a given xsi type is not found. Just read it as primitive type.
	* XmlTypeMapMember.cs: Added IsReturnValue property.
	* XmlTypeMapping.cs: Added ReturnMember property.
	* XmlSerializer.cs: Reference System.Data when compiling the serializer.

svn path=/trunk/mcs/; revision=26836
2004-05-06 15:08:58 +00:00
Lluis Sanchez f9d7ff25d2 * ReflectionHelper.cs: In CheckSerializableType() check that the type
is public.
	* XmlSerializationWriter.cs: Added check for circular references.
	  This fixes bug #49879.

svn path=/trunk/mcs/; revision=19239
2003-10-20 23:10:14 +00:00
Lluis Sanchez b1a7c11c21 * ReflectionHelper.cs: Added check in CheckSerializableType(). Interfaces
can't be serialized. This fixes bug #49878.
	* TypeData.cs: In ListItemType check that the collection has a valid
	  Add method and report an error if not.
	* XmlReflectionImporter.cs: Added CheckSerializableType check call when
	  reflecting a collection.

svn path=/trunk/mcs/; revision=19214
2003-10-20 18:41:46 +00:00
Lluis Sanchez 8205d9bfac * SoapReflectionImporter.cs, XmlReflectionImporter.cs,
SoapReflectionImporter.cs: Fixed bug #94694. Check for public constructor
	  is not needed for value types.

svn path=/trunk/mcs/; revision=18784
2003-10-09 00:51:16 +00:00
Lluis Sanchez 8e18d03529 * SoapReflectionImporter.cs: implemented.
* 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
2003-06-05 18:17:28 +00:00