* 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
* SerializationCodeGenerator.cs : enum value identifiers should be
escaped with '@'. Fixed bug #566370.
* XmlSerializerTests.cs : added test for #566370.
svn path=/trunk/mcs/; revision=149104
* SerializationSource.cs, KeyHelper.cs : split out KeyHelper from
SerializationSource as the class is going to be used in 2.1 too.
* XmlRootAttribute.cs : use KeyHelper above to add internal Key
property that is used in SL2 System.Xml.Serialization.dll.
* System.Xml.dll.sources, net_2_1_raw_System.Xml.dll.sources :
added KeyHelper.cs.
svn path=/trunk/mcs/; revision=129243
* XmlSerializer.cs : in 2.0 profile it seems to create XmlReader
for stream and textreader, that skips whitespaces.
svn path=/trunk/mcs/; revision=113307
* 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
* MapCodeGenerator.cs : use explicit element name for explicitly added
XmlElementAttribute. (exposed by some product from some company.)
svn path=/trunk/mcs/; revision=107530
* 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
* XmlSerializationReader.cs : in ReadXmlDocument(), MoveToContent()
is required after ReadStartElement(). Fixed bug #393406 (without
unit test; no simple way to do that :( ).
svn path=/trunk/mcs/; revision=104846
* XmlTypeMapping.cs : .NET 2.0 has a weird behavior that swallows
exception from IXmlSerializable.GetSchema().
* XmlSerializerTestClasses.cs, XmlSerializerTests.cs : added test
for IXmlSerializable serialization whose GetSchema() borks.
svn path=/trunk/mcs/; revision=100415
* 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
name.
* MapCodeGenerator.cs: Ensure fields that back properties are unique.
* XmlSerializationReaderTests.cs: Marked HandleOutAttributeParameters
test as NotDotNet on 1.0 profile.
* XmlCodeExporterTests.cs: Improved test for duplicate identifiers.
Fixed ExportTypeMapping_Root and ExportTypeMapping_Field tests to
pass on .NET 2.0.
svn path=/trunk/mcs/; revision=99345
base class. It happens for example when a web service declares a
soap header of type bool. The schema exporter needs to generate a
subclass of SoapHeader for that header type. But if bool is used in
the parameters, it must use System.Boolean, not the SoapHeader
subclass. The solution is to store primitive types with a forced
base class in a different table. In this way it is possible to have
two maps for primitive types: one with the forced base class
(returned by ImportDerivedTypeMapping) and one with the regular
primitive map. Fixes bug #336739.
svn path=/trunk/mcs/; revision=99013
* XmlReflectionImporter.cs : set key for imported type mapping so
that generated serializer does not result in duplicate key error.
Fixed bug #372780.
svn path=/trunk/mcs/; revision=98729
* TypeData.cs : fixed setter which did not actually see the argument.
* XmlTypeMapElementInfo.cs : some cosmetic fixes for gendarme-
reported issues.
svn path=/trunk/mcs/; revision=93763
* XmlTypeMapping.cs : to get schema provider method, check base
types as well (i.e. FlattenHierarchy). Otherwise typed DataSet
cannot be reflected in 2.0.
svn path=/trunk/mcs/; revision=89307
* TypeTranslator.cs : for duration, rather use primitiveTypes than
nameCache, and hence TimeSpan could be serialized just as custom
type. Fixed bug #338705.
* XmlSerializerTests.cs : added test for bug #338705.
svn path=/trunk/mcs/; revision=88729
* XmlSchemaImporter.cs : simpleType is allowed to be imported.
(Part of #336739 fix.)
* XmlSchemaImporterTests.cs : test for importing simple-typed
top-level element.
svn path=/trunk/mcs/; revision=88636
* XmlConvert.cs : ToDateTime(string,string) should use ParseExact(),
not Parse(). Use 'K' for roundtrip format.
* XmlCustomFormatter.cs : use RoundtripKind when converting to and
from DateTime.
* XmlConvertTest.cs : added test for DateTime roundtrip.
* XmlSerializerTests.cs : added test for bug #337729.
svn path=/trunk/mcs/; revision=88448
* MapCodeGenerator.cs : found the true culprit for the previous
attempt to the fix.
* XmlCodeExporterTests.cs : enable the previous test again.
svn path=/trunk/mcs/; revision=88365
* MapCodeGenerator.cs, XmlSchemaImporter.cs: revert the previous
change; the type is included in the output, but it should not be
the base type.
* XmlCodeExporterTests.cs : disable the previous test; it's reverted.
svn path=/trunk/mcs/; revision=88364
* MapCodeGenerator.cs, XmlSchemaImporter.cs: when a complexType has
simple content extension/restriction and the simple base type is
schema-defined, it must be written in exported code. Fixed (part
of?) bug #336739.
* XmlCodeExporterTests.cs : added test for (part of?) bug #336739,
base simple content enum type output.
svn path=/trunk/mcs/; revision=88363
* TypeTranslator.cs, XmlCustomFormatter.cs : looks like duration is
serialized to System.String, not TimeSpan. Fixed bug #336625.
* XmlSerializerTests.cs : added test for DataType in [XmlElement].
svn path=/trunk/mcs/; revision=88247
* 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
* 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
* XmlReflectionImporter.cs : do not reject XmlArrayAttribute on
byte[] (processed as primitive SchemaType). Fixed bug #81880.
* XmlReflectionImporterTest.cs : test for bug #81880.
svn path=/trunk/mcs/; revision=84548
* MapCodeGenerator.cs : avoid possible duplicates in generated field
names. Fixed bug #82078.
* XmlCodeExporterTests.cs : test for bug #82078.
* 82078.xsd : new test file.
* Makefile : extra distfiles (82078.xsd).
svn path=/trunk/mcs/; revision=84531
* XmlSerializer.cs : use WhitespaceHandling.Significant when creating
XmlTextReader. Fixed bug #82372. No tests should be added for it.
svn path=/trunk/mcs/; revision=83799
* XmlSerializationWriterInterpreter.cs : looks like XmlNode[]
serialization is a complicated mess. bug #81539.
* XmlSerializerTests.cs : test for #81539.
Sigh, why no one added tests.
svn path=/trunk/mcs/; revision=82708