* XmlAnyElementAttributes.cs:
* XmlArrayItemAttributes.cs:
* XmlElementAttributes.cs:
Under Silverlight API this implement IList only (does not
inherit from CollectionBase).
* XmlCustomFormatter.cs:
* XmlSerializationWriterInterpreter.cs:
Use a Convert.ChangeType override that exists in SL API
* XmlReflectionImporter.cs: Provide an alternative for (missing in SL)
Enum.GetNames and select available (in SL) overloads for parsing and
formatting for enums
* XmlSerializationReader.cs: Fix ToEnum API to use IDictionary (in SL)
instead of Hashtable (even if the SL4 docs still states the later)
* XmlSerializationReaderInterpreter.cs:
* XmlTypeMapping.cs:
Use the default (identical to nonPublic being false) when using
Activator.CreateInstance under SL
* XmlSerializationWriter.cs: Internally use a Queue<T> instead a a Queue
(not available in SL). Also Namespaces (ArrayList) is replaced by
XmlNamespaces (IList) in SL API.
* XmlSerializer.cs: Do not use environment variables in MOONLIGHT (like
the rest of MOBILE). Use Encoding.UTF8 instead of ENcoding.Default since
the later does not exist in SL.
* XmlSerializerImplementation.cs: SL version use IDictionary instead of
Hashtable for properties.
* XmlSerializerNamespaces.cs: Internally use a generic Dictionary
* instead
of a ListDictionary (which is not available in SL)
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.
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.
The type argument list for generic nested types include
all types arguments for the whole declaring type chain.
When generating the C# name of the class, each type
argument has to be assigned to the correct class in
the chain.
Invocations to generated serializers are done through
reflection, so exceptions are masked by TargetInvocationException.
The inner exception has to be rethrown so that the client
code gets the correct exception.
This set of .gitattributes was automatically generated from the list of files
that GIT tried to normalize when I enabled automatic EOL conversion.
With this set of attributes, we prevent automated EOL conversion on files that
we know will cause trouble down the road.
* 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