* 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
* 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
* 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
* 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
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
* XsdWildcard.cs : block extra compilation and made compilation reset.
This somehow fixed bug #360541.
* XmlSchemaAny.cs : block extra compilation in anyTypeContent.
* XmlSchemasTests.cs : new test file (for bug #360541).
* System.Xml_test.dll.sources: added XmlSchemasTests.cs.
svn path=/trunk/mcs/; revision=96115
* 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
* XmlSchemaExporterTests.cs : without Infoset(), those tests randomly
fail on .NET. This fix is incomplete. Someone please continue this
boring work. I don't want to do that.
svn path=/trunk/mcs/; revision=88453
* 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
* 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
* XmlConvert.cs : in 2.0, use F instead of f in dateTime formatting.
* XmlCustomFormatter.cs :
in 2.0, use F instead of f for dateTime formatting.
* XmlSerializationWriterTests.cs, XmlSerializerTests.cs :
fixed wrong dateTime formatting tests.
svn path=/trunk/mcs/; revision=76268
* 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
* TypeData.cs, XmlCustomFormatter.cs : generic nullable values did
not fit with non-nullable formatting. Fixed#80759 regression.
* XmlSerializerTests.cs :
added missing test from 80759, and marked similar but different one
from the same bug as not working.
svn path=/trunk/mcs/; revision=76099
* 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
* 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
* XmlTypeMapElementInfo.cs : set nullable if the type is Nullable<T>.
* XmlReflectionImporterTests.cs : added another test for nullable
container.
svn path=/trunk/mcs/; revision=73120
* XmlReflectionImporter.cs : CanBeNull() should return true when the
argument is generic nullable value type.
* XmlReflectionImporterTests.cs : added test for nullable int import.
svn path=/trunk/mcs/; revision=73117
* SoapReflectionImporter.cs : for primitive types, set predefined
namespaces, regardless of the actual specification.
* SoapReflectionImporterTests.cs : removed some NotWorking.
svn path=/trunk/mcs/; revision=72455
* 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
* XmlSerializationWriter.cs : WriteTypedPrimitive() infers the type
when the name is null (almost no need to do this, but it is easier
to remove NotWorking from extraneous tests and let them hush than
removing them).
* XmlSerializationWriterTests.cs : removed some NotWorking.
svn path=/trunk/mcs/; revision=72436
* TypeData.cs : added get_IsGenericNullable.
* MapCodeGenerator.cs : in GetDomType(), return Nullable<T> when
the TypeData.IsGenericNullable.
Use GetDomType() instead of CodeTypeReference.ctor() to not lose
Nullable<T> info.
* XmlSchemaImporter.cs : added isNullable argument to GetTypeData()
so that it won't XmlSchemaElement.IsNillable.
* TypeTranslator.cs :
Fixed wrong TypeData modification against non-nullable stuff.
Added another GetTypeData() that takes isNullableRuntimeType so
that it won't miss XmlSchemaElement.IsNillable.
Added another GetPrimitiveTypeData() that takes nullable.
* XmlSchemaImporterTests.cs :
test that <xs:element nillable='true' ...> is mapped to Nullable<T>.
svn path=/trunk/mcs/; revision=71304
* TypeData.cs : reject generic type definitions.
* TypeTranslator.cs : Make generic type names in XML compatible with
.net: foo_x0060_1 -> fooOfString.
* XmlSerializerTests.cs : most of generic tests are working now.
* XmlReflectionImporterTests.cs : test for rejecting generic type
definition.
svn path=/trunk/mcs/; revision=71001
* 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
* XmlSchemaExporter.cs: Emit xml name of enum-based default values.
Set XmlSchemaAttribute.Use to Required if no default value is defined,
and member is not an optional value type. Element should have minOccurs
1 if value type member has default value. Output flag enum type as
xsd list with restriction.
* XmlReflectionImporter.cs: Removed special casing of enums. Instead
of passing namespace of XmlAttribute to ImportTypeMapping, use the
default namespace for importing the member type.
svn path=/trunk/mcs/; revision=68887
* XmlSerializerTests.cs : added tests for serialization of generic types.
* DeserializeTests.cs : added tests for deserialization of generic types.
* XmlSerializerTestClasses.cs : added classes for tests which use generic types.
svn path=/trunk/mcs/; revision=68886
* XmlReflectionImporter.cs : implemented several missing check and
support for XmlArrayAttribute. Fixed bug #78042.
* XmlSerializerTests.cs : added tests for XmlArrayAttribute support.
svn path=/trunk/mcs/; revision=68792