Commit Graph
71 Commits
Author SHA1 Message Date
Atsushi Eno 4fab2dc4c3 Fix bug #703910 - implement Order support in XmlSerializer. 2011-07-21 04:57:32 +09:00
Lluis Sanchez a8aa1e0653 [Web.Services] Add support for optional parameters
Non-nullable web service parameters can be made optional by
adding an additional parameter with the same name and a
'Specified' suffix. This was supported when serializing
classes, but not when serializing web service parameters.
This might fix bug 688496.
2011-04-28 18:33:59 +02:00
Atsushi Eno 2f86157982 XmlSerializer code generator was generating wrong char literal.
Fixed bug #673019.
2011-04-28 15:41:27 +09:00
Lluis Sanchez 0943712481 Fix several issues in the code generator
Issues include: casts not being properly generated for nullable
types, missing cast when the type of a member does not match
the forced serialization type, and incorrect code generated
for handling [XmlText] members.
2010-12-13 16:51:44 +01:00
Atsushi Eno 0f1cffee4c 2010-01-28 Atsushi Enomoto <[email protected]>
* SerializationCodeGenerator.cs : generate valid code for non-
	  identifier names. This should fix bug #488293.


svn path=/trunk/mcs/; revision=150356
2010-01-28 08:36:05 +00:00
Atsushi Eno 2866de3175 2010-01-26 Atsushi Enomoto <[email protected]>
* XmlReflectionImporter.cs, SerializationCodeGenerator.cs,
	  XmlSerializationWriterInterpreter.cs: XmlAnyElementAttribute can be
	  still used for non-XmlNode (object) array. It only fails when it
	  tries to serialize non-XmlNode object at run-time.
	  Fixed bug #553032.

	* XmlSerializerTests.cs : added test for bug #553032.


svn path=/trunk/mcs/; revision=150197
2010-01-26 07:06:51 +00:00
Atsushi Eno 6811013bfb 2010-01-06 Atsushi Enomoto <[email protected]>
* SerializationCodeGenerator.cs : enum value identifiers should be
	  escaped with '@'. Fixed bug #566370.

	* XmlSerializerTests.cs : added test for #566370.


svn path=/trunk/mcs/; revision=149104
2010-01-06 04:02:02 +00:00
Atsushi Eno dfa3a04f22 2008-09-02 Atsushi Enomoto <[email protected]>
* SerializationCodeGenerator.cs
	  XmlSerializationWriterInterpreter.cs : fixed bug #419973.
	  Sometimes implicit operators could involve and it affects on
	  typecasting. It's simple for code generator, but very bad for
	  reflection.

	* XmlSerializerTestClasses.cs, XmlSerializerTests.cs:
	  added test for bug #419973.


svn path=/trunk/mcs/; revision=112103
2008-09-02 16:56:08 +00:00
Marek Safar cc96a40c48 Warnings cleanup
svn path=/trunk/mcs/; revision=111909
2008-08-29 12:02:25 +00:00
Atsushi Eno 8688f906c3 2008-06-05 Atsushi Enomoto <[email protected]>
* XmlSerializationReaderInterpreter.cs, MapCodeGenerator.cs,
	  SerializationCodeGenerator.cs : fixed bug #378696.
	  Default value should not be filled during deserialization, and
	  default values for DateTime/TimeSpan/DateTimeOffset should not be
	  output as raw string in generated code.

	* XmlSerializerTestClasses.cs, DeserializeTests.cs,
	  ComplexDataStructure.cs : added test for bug #378696.
	  Fixed couple of wrong tests that expects default values filled
	  during deserialization.


svn path=/trunk/mcs/; revision=104983
2008-06-05 11:28:51 +00:00
Lluis Sanchez 9dc8e1d48a * TypeData.cs: Prefix with a '@' type names that are equal to keywords.
* XmlSerializationReaderInterpreter.cs,
  XmlSerializationWriterInterpreter.cs: Properly handle nullable enum
  values.
* SerializationCodeGenerator.cs: Properly handle nullable enum values.
  Don't generate read flags for text collectors (avoid var not used
  warning).
* XmlReflectionImporter.cs: Assign the MappedType to text collector
  members. It is needed when the member is an enum.

svn path=/trunk/mcs/; revision=99512
2008-04-01 14:18:44 +00:00
Atsushi Eno 6959e0c1d3 2007-09-25 Atsushi Enomoto <[email protected]>
* XmlSerializerTests.cs : added deserialization test for
	  XmlSchemaProviderAttribute use.
	* XmlReflectionImporterTests.cs : added test for conclict resolution
	  between defaultNamespace and XmlSchemaProvider() namespace.
	* XmlSchemaExporterTests.cs : use Infoset() comparison.

	* XmlTypeMapping.cs : Namespace and XmlTypeNamespace could be
	  different when an explicit namespace is specified (e.g. at
	  XmlReflectionImporter.ctor).
	* SerializationCodeGenerator.cs,
	  XmlSerializationWriterInterpreter.cs :
	  revert XmlTypeMapping.XmlTypeNamsepace usage. Now with the fix
	  above, original code should work fine.


svn path=/trunk/mcs/; revision=86346
2007-09-25 17:35:18 +00:00
Atsushi Eno 1e597c4439 2007-09-25 Atsushi Enomoto <[email protected]>
* XmlTypeMapping.cs, XmlSerializationWriterInterpreter.cs,
	  SerializationCodeGenerator.cs :
	  More XmlSchemaProviderAttribute method check. Use QName returned
	  by the method for the output root name.

	* XmlSerializerTests.cs, XmlReflectionImporterTests.cs :
	  added tests for XmlSchemaProviderAttribute and how its qname works.


svn path=/trunk/mcs/; revision=86340
2007-09-25 15:55:48 +00:00
Atsushi Eno 539a09ff94 2007-04-24 Atsushi Enomoto <[email protected]>
* XmlCustomFormatter.cs : ditto for reader method generation.
	* SerializationCodeGenerator.cs : for generic nullable values it
	  needs to store ReadNullableString() result to a temporary variable.

	* XmlSerializerTests.cs : another case on #80759 from gert.


svn path=/trunk/mcs/; revision=76160
2007-04-24 03:37:03 +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
Atsushi Eno c4833c5907 2007-02-28 Atsushi Enomoto <[email protected]>
* SerializationCodeGenerator.cs : fix wrong name comparison:
	  Name->LocalName. Add hacky TARGET_JVM support (hope it is harmless).


svn path=/trunk/mcs/; revision=73527
2007-02-28 08:40:46 +00:00
Atsushi Eno 19a69141f1 2007-02-20 Atsushi Enomoto <[email protected]>
* SerializationCodeGenerator.cs,
	  XmlSerializationReaderInterpreter.cs :
	  Handle attributes on non-empty elements as well. Fixed bug #80131.

	* XmlSerializationReaderTests.cs : test non-empty element as well.


svn path=/trunk/mcs/; revision=73145
2007-02-20 07:38:35 +00:00
Atsushi Eno 26736f8173 2007-02-20 Atsushi Enomoto <[email protected]>
* SerializationCodeGenerator.cs,
	  XmlSerializationReaderInterpreter.cs :
	  Handle empty root element.
	  Read out attribute parameters. To do that, split attribute
	  reader part from ReadMembers(), as it isn't invoked when the
	  element is empty.

	* XmlSerializationReaderTests.cs : added test for out attribute
	  parameters. It also tests empty root element.


svn path=/trunk/mcs/; revision=73143
2007-02-20 06:06:12 +00:00
Atsushi Eno 99fc1ef28a 2007-02-19 Atsushi Enomoto <[email protected]>
* SerializationCodeGenerator.cs, XmlMappingAccess.cs,
	  SerializationCodeGeneratorConfiguration.cs : replaced HookDir with
	  XmlMappingAccess.


svn path=/trunk/mcs/; revision=73113
2007-02-19 13:07:22 +00:00
Atsushi Eno a70a652db2 2007-02-19 Atsushi Enomoto <[email protected]>
* SerializationCodeGenerator.cs : hooks won't work unless they are
	  set. For WriteStartElement() it could simply embed the names.


svn path=/trunk/mcs/; revision=73112
2007-02-19 13:00:08 +00:00
Atsushi Eno 538b940300 2007-02-07 Atsushi Enomoto <[email protected]>
* XmlSerializationWriter.cs : WriteTypedPrimitive() does not support
	  XmlNode arrays.
	* XmlSerializationWriterInterpreter.cs,
	  SerializationCodeGenerator.cs : so they have to be handled here.

	* XmlSerializerTests.cs : added some XmlNode array/list tests.
	* XmlSerializationWriterTests.cs : removed more NotWorking. Added
	  WriteTypedPrimitive() error test for XmlNode.


svn path=/trunk/mcs/; revision=72448
2007-02-07 18:47:55 +00:00
Atsushi Eno 4b62022259 2006-12-04 Atsushi Enomoto <[email protected]>
* SerializationCodeGenerator.cs, XmlCustomFormatter.cs :
	  GenerateToXmlString() needed hexBinary support as well. Since
	  XmlConvert.[To|From]BinHexString() are internal, use reflection.
	  Really fixed bug #79989 and #79990 for generated serializers.

	* XmlSerializerTests.cs :
	  added base64 tests which is similar to hexBinary.


svn path=/trunk/mcs/; revision=68927
2006-12-04 05:21:02 +00:00
Gert Driesen 5cab5ca519 * SerializationCodeGenerator.cs: Initialize out parameters if they
are value types. Fixed bug #79988.
* XmlSerializationReaderInterpreter.cs: Same.

svn path=/trunk/mcs/; revision=68877
2006-12-02 16:42:22 +00:00
Atsushi Eno b70585a3e8 2006-11-17 Atsushi Enomoto <[email protected]>
* XmlSerializerTests.cs : test for basic generic type support with
	  code generation.

	* SerializationCodeGenerator.cs, TypeData.cs :
	  Now we differentiate TypeName, FullTypeName C# type names. It is
	  to create valid C# sources especially for generic types.
	  Fixed bug #79657.


svn path=/trunk/mcs/; revision=68058
2006-11-17 14:52:02 +00:00
Atsushi Eno ec31a7936d 2006-11-14 Atsushi Enomoto <[email protected]>
* SerializationCodeGenerator.cs,
	  SerializationCodeGeneratorConfiguration.cs :
	  make "XmlSerializerContract" and "BaseXmlSerializer" customizible.
	  (or it is impossible to use genxs more than twice in an assembly.)

	* XmlSerializerImplementationTests.cs :
	  another custom implementation case.


svn path=/trunk/mcs/; revision=67857
2006-11-14 17:36:49 +00:00
Atsushi Eno 8db245f202 2006-11-01 Atsushi Enomoto <[email protected]>
* XmlSerializationGeneratedCode.cs : removed InternalSyncObject.
	* SerializationCodeGenerator.cs : since IXmlSerializerImplementation
	  became a class, it needs explicit "override".
	  Since InternalSyncObject is gone, it needs another lock target.
	* IXmlSerializerImplementation.cs : removed.
	* XmlSerializerImplementation.cs : added.
	* XmlSerializer.cs : removed extra GenerateSerializer() overloads.
	  IXmlSerializerImplementation -> XmlSerializerImplementation.
	* XmlSchemas.cs : removed Schemas. hacked Compile().
	  Now it implements IEnumerable<XmlSchema>.
	* XmlSchemaEnumerator.cs : added missing type.


svn path=/branches/atsushi/mcs/; revision=67230
2006-11-01 19:52:06 +00:00
Ankit Jain 420698f9cb * SerializationCodeGenerator.cs (GenerateContract): Handle
'generateAsInternal' config option.

svn path=/trunk/mcs/; revision=66987
2006-10-25 23:46:54 +00:00
Gert Driesen b5eb88c87f * DeserializeTest.cs: Added several tests.
* XmlSerializerTestClasses.cs: Added test classes for encoded SOAP.
* XmlSerializerTests.cs: Added new tests and fixed existing test.
* XmlReflectionImporterTests.cs: Added test for invalid default
values.
* SoapReflectionImporterTests.cs: Fixed numbering of tests.
* XmlSerializer.cs: Corrected exception message when deserialization
fails.
* SerializationCodeGenerator.cs: Added support for flag enums.
* XmlReflectionImporter.cs: Use InvalidOperationException wrapper for
all exceptions that occur while reflecting member. Validate default
values to match MS.
* SoapReflectionImporter.cs: Revert small part of previous patch as
XmlSerializer expects enum value.

svn path=/trunk/mcs/; revision=66524
2006-10-10 17:53:49 +00:00
Lluis Sanchez cc62d11431 2006-06-07 Lluis Sanchez Gual <[email protected]>
* XmlTypeMapMember.cs: Added GlobalIndex property.
	* XmlTypeMapping.cs: When adding a member, initialize its GlobalIndex
	  property.
	* SerializationCodeGenerator.cs:
	* XmlSerializationWriterInterpreter.cs:
	* XmlSerializationReaderInterpreter.cs: Use GlobalIndex instead of
	  Index to get/set the values from the input array, since some Index
	  values are shared between attribute and element members. Fixes
	  bug #78562.


svn path=/trunk/mcs/; revision=61531
2006-06-07 14:33:48 +00:00
Atsushi Eno 61ab44349c 2006-05-30 Atsushi Enomoto <[email protected]>
* SerializationCodeGenerator.cs,
	  XmlSerializerReaderInterpreter.cs : handle CDATA section as text
	  node. Fixed bug #78536.

	* XmlSerializerTests.cs : added tailored version of bug #78536 test.


svn path=/trunk/mcs/; revision=61294
2006-05-31 01:38:24 +00:00
Lluis Sanchez 0c92696ca1 2006-05-03 Lluis Sanchez Gual <[email protected]>
* SerializationCodeGenerator.cs: Allow generating serializer for
	  reading an XmlElement or XmlDocument as root element.
	  Properly generate jagged array creation.


svn path=/trunk/mcs/; revision=60207
2006-05-03 09:24:04 +00:00
Gert Driesen 2bfaa4cc5c * DeserializeTests.cs: Improved TestDeserialize_Enum test for
bug #78204.
* SerializationCodeGenerator.cs: For flag enums, we should split on all
whitespace chars instead of only on blanks.
* XmlTypeMapping.cs: Same. Added ToEnum method for converting from
constant name(s) to integral enum value.

svn path=/trunk/mcs/; revision=59918
2006-04-26 09:56:45 +00:00
Gert Driesen 9c4805562a * DeserializeTests.cs: Enabled tests for bug #77530.
* XmlSerializerTests.cs: Enabled tests for bug #77530.
* XmlTypeMapping.cs: EnumMapMember now also stores value for enums.
Modified EnumMapping.GetXmlName to use XmlCustomFormatter to support
serialization of integral value to enum constant name, and made sure
the exceptions we throw match those of MSFT. In EnumMapping.GetEnumName
throw InvalidOperationException if no matching enum constant exists.
In EnumMap ctor, initialize arrays holding XML names, enum names and
enum values.
* XmlSerializationReaderInterpreter.cs: Pass full type name to
EnumMapping.GetEnumName for construction of exception message.
* XmlSerializer.cs: In Deserialize, wrap InvalidOperationException
and InvalidCastException in another InvalidOperationException to match
MSFT. In Serialize, wrap InvalidOperationException, InvalidCastException
and the inner exception for a TargetInvocationException in an
InvalidOperationException to match MSFT.
* SerializationCodeGenerator.cs: In GenerateGetXmlEnumValue, use
XmlCustomFormatter.FromEnum in order to also support serialization
integral value to enum constant name. In 2.0 profile, throw
InvalidOperationException if numeric value cannot be serialized into
an enum constant value. In GenerateSingleEnumValue, no longer attempt
to parse unknown constant value but instead report it as
InvalidOperationException. Use string.Length instead of "" comparison
to check whether a string is empty. Fixed compiler warnings in
generated code (possible empty statement).
* XmlSerializationWriterInterpreter.cs: Pass full type name to
EnumMap.GetXmlName.
* XmlSchemaImporter.cs: Pass full type name to EnumMap.GetEnumName
to allow it to be used in exception messag* XmlReflectionImporter.cs.
Use FieldInfo instead of MemberInfo for enum fields. Use IsDefined 
instead of GetCustomAttributes for checking if a certain attribute
 is defined. Use integral value of enum constant in EnumMapMember ctor.
* SoapReflectionImporter.cs: Use FieldInfo instead of MemberInfo for
enum fields. Use IsDefined instead of GetCustomAttributes for checking
if a certain attribute is defined. Use integral value of enum constant
in EnumMapMember ctor.
es.

svn path=/trunk/mcs/; revision=57761
2006-03-10 04:37:54 +00:00
Gert Driesen bb7e485ee3 * SerializationCodeGenerator.cs: Omit return statement in ReadObject method if
GenerateReadListElement returns null. Fixes bug #77588.

svn path=/trunk/mcs/; revision=57144
2006-02-22 06:47:06 +00:00
Lluis Sanchez eee1751b77 2005-12-07 Lluis Sanchez Gual <[email protected]>
* XmlSerializationReaderInterpreter.cs: When deserializing a "flat"
	collection, don't create a new collection if the property already has a 
	collection instance.
	* SerializationCodeGenerator.cs: same as above. Also return an empty
	string for flag enum default values.


svn path=/trunk/mcs/; revision=54043
2005-12-07 15:42:54 +00:00
Lluis Sanchez 6074454762 2005-12-05 Lluis Sanchez Gual <[email protected]>
* XmlSerializerTestClasses.cs:
	* DeserializeTests.cs: Added tests for bug #76808 and related behavior.

2005-12-05  Lluis Sanchez Gual  <[email protected]>

	* XmlSerializationReaderInterpreter.cs:
	* SerializationCodeGenerator.cs: When deserializing a collection,
	don't create a new collection if the property already has a 
	collection instance. This does not apply to arrays. Changed how nullabe
	array properties are set. Setting IsNullable=false to the property means
	that it won't be set if the read array is null (so, if the property
	already has a value, it will be kept).
	Another change is that can't never be null (only arrays can).


svn path=/trunk/mcs/; revision=53949
2005-12-05 20:44:42 +00:00
Lluis Sanchez 814b15d6b0 2005-10-17 Lluis Sanchez Gual <[email protected]>
* SerializationCodeGenerator.cs: 
	* XmlSerializationWriterInterpreter.cs: Arrays of XmlNode don't
	need to be all XmlElments. Fix by Atsushi for bug #76288.


svn path=/trunk/mcs/; revision=51795
2005-10-17 10:39:40 +00:00
Lluis Sanchez 05ddc568ab 2005-09-26 Lluis Sanchez Gual <[email protected]>
* XmlTypeMapping.cs: Added ChoiceMember to ListMap.
	In ListMap.FindElement, take into account the ChoiceMember
	if set.
	* SerializationCodeGenerator.cs:
	* XmlSerializationReaderInterpreter.cs: For lists with a choice
	member, fill the member with the corresponding enum values.
	* XmlReflectionImporter.cs: Properly reflect the choice member
	when applied to a list.
	* XmlSerializationWriterInterpreter.cs: Track class changes.
	* XmlTypeMapMemberElement.cs: Added ChoiceTypeData property.
	All this fixes bug #76203.


svn path=/trunk/mcs/; revision=50779
2005-09-26 15:40:46 +00:00
Lluis Sanchez 2edbc72ff5 2005-08-05 Lluis Sanchez Gual <[email protected]>
* XmlTypeMapping.cs: Added ListMembers property that returns
	members which are collections.
	* SerializationCodeGenerator.cs:
	* XmlSerializationReaderInterpreter.cs: Initialize collection
	members to an empty collection by default. Fixes bug #75662.


svn path=/trunk/mcs/; revision=48037
2005-08-05 11:43:30 +00:00
Lluis Sanchez cd403b28dc 2005-07-14 Lluis Sanchez Gual <[email protected]>
* SerializationCodeGenerator.cs: In the generated serializer always
	use the Object equality operator when comparing objects to serialize
	to null, since those objects may have the equality operator
	overloaded. This fixes bug #75543.


svn path=/trunk/mcs/; revision=47296
2005-07-14 09:38:31 +00:00
Lluis Sanchez d8dc07c3f5 2005-06-07 Lluis Sanchez Gual <[email protected]>
* SerializationCodeGenerator.cs: When reading members by order,
	call a MoveToContext after each member read. In the fixup method
	don't cast returned values if it is reading an object array.
	
	* XmlSchemaImporter.cs: In ImportDerivedTypeMapping, if the type
	being imported is a primitive type, create a wrapper class that
	inherits from the provided one. This fixes bug #68809.
	
	* XmlSerializationReader.cs: Properly report unreferenced objects.
	Created an overload of ReadTypedPrimitive that reports elements of
	unknown type. Implemented Referenced(). 


svn path=/trunk/mcs/; revision=45586
2005-06-07 16:55:01 +00:00
Lluis Sanchez e394f2ee4c 2005-04-12 Lluis Sanchez Gual <[email protected]>
* XmlTypeMapping.cs: Added new XmlSerializableMapping class.
	* XmlSchemaExporter.cs: When exporting an IXmlSerializable type,
	export the schema that it defines. In ImportNamespace, removed
	check for default namespace, since it may be included from a non
	default namespace.
	* XmlReflectionImporter.cs: Create a special map for IXmlSerializable
	types. All this based on a patch by Andrew Skiba.
	
	* SerializationCodeGenerator.cs:
	* XmlMapping.cs:
	* XmlSerializationReaderInterpreter.cs:
	* SoapCodeExporter.cs:
	* XmlTypeMapMemberAttribute.cs:
	* XmlSerializationReader.cs:
	* XmlCodeExporter.cs: Fixed some warnings.

2005-04-10  Andrew Skiba  <[email protected]>

2005-04-03  Andrew Skiba  <[email protected]>

svn path=/trunk/mcs/; revision=42841
2005-04-12 16:34:24 +00:00
Lluis Sanchez e4bc62c60c 2005-03-30 Lluis Sanchez Gual <[email protected]>
* SerializationCodeGenerator.cs: 
	* XmlSerializationReaderInterpreter.cs: If the element being read is
	bound to a choice member, set the corresponding value.
	* XmlTypeMapMember.cs: Added helper SetValue method.
	* XmlTypeMapElementInfo.cs: Changed the type of ChoiceValue to Object,
	since now stores the enum value.
	* XmlReflectionImporter.cs: Properly import choice values.
	* XmlTypeMapMemberElement.cs: Added setter for the choice.


svn path=/trunk/mcs/; revision=42416
2005-03-31 08:38:38 +00:00
Gonzalo Paniagua Javier c30ed27de6 2005-01-18 Gonzalo Paniagua Javier <[email protected]>
* SerializationCodeGenerator.cs: don't use _config if it has not been
	assigned.


svn path=/trunk/mcs/; revision=39115
2005-01-18 19:55:03 +00:00
Atsushi Eno 303719101a 2005-01-14 Atsushi Enomoto <[email protected]>
* SerializationCodeGenerator.cs,
	  XmlSerializationWriterInterpreter.cs : exchanged attribute
	  serialization orders (XmlAnyAttribute <-> XmlNamespaceDeclarations).
	  xmlns attributes in XmlAnyAttribute are not written.



svn path=/trunk/mcs/; revision=38944
2005-01-14 16:47:43 +00:00
Atsushi Eno 566fcb9be5 2005-01-12 Atsushi Enomoto <[email protected]>
* SerializationCodeGeneratorConfiguration.cs,
	  SerializationCodeGenerator.cs : Added some generation configuration:
		<generateAsInternal>
			write custom reader/writer as internal classes.
		<noreader>, <nowriter>
			They make generation of reader and/or writer optional.
	* XmlSerializerNamespaces.cs :
	  Now it uses ListDictionary instead of Hashtable.
	* XmlSerializationWriter.cs : entries in XmlSerializerNamespaces are
	  written unless there is already the same prefix-ns mapping.



svn path=/trunk/mcs/; revision=38760
2005-01-12 04:33:28 +00:00
Lluis Sanchez 34bea03c3a 2004-12-09 Lluis Sanchez Gual <[email protected]>
* SerializationCodeGenerator.cs: Yet another generation fix.


svn path=/trunk/mcs/; revision=37523
2004-12-09 21:05:31 +00:00
Lluis Sanchez e1614ad603 2004-12-09 Lluis Sanchez Gual <[email protected]>
* SerializationCodeGenerator.cs: Fixed generation of enum literals.


svn path=/trunk/mcs/; revision=37487
2004-12-09 13:57:10 +00:00
Lluis Sanchez 212bcb99fe 2004-11-24 Lluis Sanchez Gual <[email protected]>
* SerializationSource.cs: Made SerializationSource abstract, and
	renamed Equals to BaseEquals to avoid missing GetHashCode warning
	(it does not really make sense in this case).
	* XmlSchemaExporter.cs, SerializationCodeGenerator.cs,
	XmlReflectionImporter.cs, XmlSerializationWriterInterpreter.cs,
	XmlSerializationReader.cs: Fixed warnings.


svn path=/trunk/mcs/; revision=36462
2004-11-24 09:52:05 +00:00
Lluis Sanchez 652840c106 * SerializationCodeGenerator.cs, XmlSerializationReaderInterpreter.cs:
when reading a primitive value in encoded format using
	  ReadReferencingElement, provide the type name and namespace
	  since the xsi type may not be present in the xml element. This
	  fixes bug #65929.

svn path=/trunk/mcs/; revision=34157
2004-09-21 09:59:17 +00:00