Commit Graph
104 Commits
Author SHA1 Message Date
Jose Donizetti 1690b16a73 add IsAny=true support for DataContractSerializer 2014-05-22 23:01:16 -04:00
Miguel de Icaza d28e7b7955 [System.Runtime.Serialization] Fix from Brendan Zagaeski for bug #17663 2014-02-24 21:16:29 -05:00
Miguel de Icaza 3071b20dc5 Add test for Bug #15572 from pull request #820 2014-02-12 16:06:32 -05:00
Miguel de Icaza dc186cf9ef Add tests for bug #15574, pull request 819 2014-02-12 15:39:24 -05:00
Zoltan Varga add2135688 Fix a test. 2013-04-11 17:25:33 +02:00
Martin Baulig 91f11b20d7 Bug #5829: DataContractSerializer should not check for invalid characters. 2013-03-22 01:00:56 +01:00
Rodrigo Kumpera 9c15b24100 Fix the System.Runtime.Serialization test suite to compile. 2013-03-21 13:18:16 -04:00
Marek Safar a4915d561e Update mobile tests 2013-03-07 16:34:24 +01:00
Atsushi Eno 62bf3c73c5 fix bug #7957: empty dictionary should not be read siblings as content. 2012-10-24 11:57:57 +09:00
Zoltan Varga a4cbf28314 Fix make check PROFILE=net_2_0 in System.Runtime.Serialization. 2012-10-18 12:54:40 +02:00
Martin Baulig ea570f3a76 [WCF,Serialization] Improve and fully implement support for collection types.
* System.Runtime.Serialization/XsdDataContractImporter:
      Check ImportOptions.ReferencedCollectionTypes to determine the proxy type.

* System.ServiceModel.Description/MetadataImporter.cs:
      Very simply implementation of the 'State' property.

* System.ServiceModel.Description/DataContractSerializerMessageContractImporter.cs:
      Use it here.

* Test/Resources/WSDL: Added some sample .wsdl files for the new tests; adding
      these as resources to the test dll.

* Test/System.Runtime.Serialization: Added WsdlHelper.cs,
      XsdDataContractImporterTest2.cs and XsdDataContractExportTest2.cs
2012-10-09 23:04:08 +02:00
Martin Baulig e5e80eeae1 [#7299][Serialization]: Fixed and improved collection serialization.
* Implement "Interchangeable Collections" and Collection Interface Types.
  (see http://msdn.microsoft.com/en-us/library/aa347850.aspx)

* Add element type check for arrays.

* Identify custom collection types (must have a public parameterless
  constructor and an "Add" method with the correct argument type) and
  distinguish them from types which implement one or more of the
  collection interfaces without being a custom collection type.

* Add some checks for [CollectionDataContract].

* Added some NUnit tests for that.
2012-09-25 03:23:19 +02:00
Marek Safar 0201ee4db6 Fix more failing tests 2012-06-07 12:19:58 +01:00
Vinicius Jarina b7b6bbea57 Added unit test for the bug #242 2012-05-30 16:03:02 -03:00
Vinicius Jarina aa6c3ddc4c Added unit test for the bug #3258 (Serialize|Deserialize DateTimeOffset?) 2012-05-08 16:53:15 -03:00
Dave Ferguson 3b6cb0a486 Fix DataContractSerializer with duplicate qname
- Fix bug 4794 by searching the SerializationMap with both type and
  qname in all but several cases (see bug report comments)

- Add separate list for known types to mimic behavior of the .NET
  runtime

- Make previous test fixtures public so that the unit tests will be run

- Remove unused private method

- Add unit test for bug 4794
2012-05-03 01:56:17 -04:00
Vinicius Jarina cf6d258e8b Fix broken test 2012-03-22 13:36:31 +01:00
Vinicius Jarina 32b939f496 Add unit test for bug 2843 (Serialization/Deserialization Nullable Enum). 2012-03-10 21:01:34 -03:00
Vinicius Jarina 5a4135fde4 Add unit test for Serialization/Deserialization with Nullable using Dictionary/Lists 2012-03-10 20:58:40 -03:00
Atsushi Eno e7532fc5dd Fix wsdl import wrt element qname (!= type name). 2011-07-27 21:03:31 -07:00
Atsushi Eno b737e5542f Implement support for generic data contract type name with "{x}". 2011-06-28 18:01:38 +09:00
Atsushi Eno e0be05d381 Look for KnownTypeAttributes on known types (recursively). Fixed bug #695203. 2011-05-23 19:27:55 +09:00
Atsushi Eno 761ef9d9cf Fixed orders in XmlSchemaObjectTable and got some S.R.Serialization tests working. 2011-05-11 16:34:45 +09:00
Atsushi Eno 419fee3d9b CanImport() just returns false, without throwing error. 2011-05-10 22:02:20 +09:00
Atsushi Eno da1f191f52 support import of xs:anyType, as well as make couple of minor fixes. 2011-05-10 21:45:45 +09:00
Atsushi Eno de50f78581 Update XsdDataContractImporter.CanImport and implement ImportXmlType. 2011-05-10 17:40:35 +09:00
Atsushi Eno b671fac2c6 Looks like xs:any is allowed under certain condition in XsdDataContractImporter.
But I don't understand why :(
2011-04-28 23:40:00 +09:00
Atsushi Eno f85bbe3845 Do not reject xsd:* types that are not listed in KnownTypeCollection.
e.g. xs:token.
2011-04-28 20:06:14 +09:00
Atsushi Eno 7f9aff3203 RooArray types were rejected as unknown when it is at root. Fixed bug #688414. 2011-04-21 16:19:15 +09:00
Atsushi Eno be5f140d36 Implement support for KnownTypeAttribute.MethodName. 2011-04-15 15:40:42 +09:00
Atsushi Eno 71ffb28338 Looks like WCF serializer supports XmlNode, so we do as well.
for details: http://msdn.microsoft.com/en-us/library/aa347876.aspx

Fixed bug #682957.
2011-03-28 17:09:25 +09:00
Atsushi Eno c5d0bb0915 Fix serialization test build that depended on compiler contravariance bug. 2011-03-24 18:00:58 +09:00
Atsushi Eno d7796bf493 In some collection case, xsi:type is explicitly written. Try to copy that behavior. 2011-03-10 14:33:02 +09:00
Peter Gerbrandt 707b30ed76 Implement support for QNameIndex (0xBC) in attribute nodes. 2011-03-09 13:59:15 +09:00
Atsushi Eno 94c253cdbe Couple of fixed to support new DateTimeOffset serialization in .NET WCF. 2011-03-07 16:45:33 +09:00
Atsushi Eno 8753386e4b MakXsdDataContractExporter refactoring to generally use SerializationMap.XmlName.
Fixed bug #670539.
2011-02-17 00:55:15 +09:00
Atsushi Eno 8e916dc39c There's a tricky namespace-mismatching deserialization in .NET implementation.
Fixed bug #666333.
2011-02-08 17:09:26 +09:00
Atsushi Eno ab2cc9fed9 Members in the base type in different namespace are serialized in base ns.
When the serializer serializes a Type B which is derived from A, it used to
serialize member M in A as in namespace_of_B, not in namespace_of_A.

This should fix bug #652331.
2011-02-01 15:53:05 +09:00
Atsushi Eno 4a5f7c742c Contract-based type must ensure that the base type is also contract-based.
Fixed bug #661987 on WCF side.
2011-01-20 16:16:56 +09:00
Atsushi Eno 158d9db8a2 Fix DataContractResolver.ResolveName() support in deserializer. Add roundtrip test. 2010-10-05 17:43:32 +09:00
Atsushi Eno 47fd1c3a33 Implement DataContractResolver support. At least TryResolveType in serializer should work. 2010-10-05 00:08:15 +09:00
Atsushi Eno 582a90e800 Add DataContractResolver stuff (dummy), and fix Id reference from inside the referenced object. 2010-09-30 20:56:00 +09:00
Atsushi Eno c8935e97b6 KnownTypes should return the actual types. 2010-08-06 19:41:35 +09:00
Raja R Harinath cd51491631 Fix a few cases of mixed line-endings
This is a scripted conversion of mixed line-ending files to LF-only or CRLF-only
based on which patch is smaller.  I used a threshold of upto a quarter of the
lines to determine whether to keep the patch or not.
2010-07-26 02:20:13 +05:30
Raja R Harinath b293948fb7 EOL handling
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.
2010-07-25 20:17:39 +05:30
Atsushi Eno b4b4b59a8f 2010-06-02 Atsushi Enomoto <[email protected]>
* XmlBinaryDictionaryReader.cs : reset name in Reset().
	   Fixed bug #599479.

	* XmlObjectSerializerTest.cs : enable binary reader test for #601785.


svn path=/trunk/mcs/; revision=158317
2010-06-02 07:42:42 +00:00
Atsushi Eno a0e53fd493 2010-06-01 Atsushi Enomoto <[email protected]>
* XmlObjectSerializerTest.cs : added test for bug #601785, based on
	  the test by Raja Harinath.


svn path=/trunk/mcs/; revision=158252
2010-06-01 04:49:17 +00:00
Atsushi Eno 0c939881ae 2010-05-31 Atsushi Enomoto <[email protected]>
* SerializationMap.cs, XmlFormatterSerializer.cs,
	  DataContractSerializer.cs :
	  support DataContractSerializer.PreserveObjectReferences. z:Ref
	  attributes are used not only for objects with IsReference=true.
	  Fixed bug #610036.

	* XmlObjectSerializerTest.cs : test PreserveObjectReferences too.


svn path=/trunk/mcs/; revision=158201
2010-05-31 11:31:04 +00:00
Atsushi Eno 29cb0e4f69 2010-05-31 Atsushi Enomoto <[email protected]>
* SerializationMap.cs, KnownTypeCollection.cs : contract namespace
	  should be still considered even if contract (local) name is null.
	  Fix crash for generic derived type of dictionary. Fixed the
	  primary (crasher) part of bug #610036.

	* XmlObjectSerializerTest.cs : add test for bug #610036.


svn path=/trunk/mcs/; revision=158197
2010-05-31 10:32:30 +00:00
Atsushi Eno 54fdf2a775 2010-04-28 Atsushi Enomoto <[email protected]>
* KnownTypeCollection.cs : support DataContractNamespaceAttribute.
	  Fixed bug #599889.

	* XmlObjectSerializerTest.cs : add test for bug #599899.


svn path=/trunk/mcs/; revision=156277
2010-04-28 01:08:01 +00:00