Commit Graph
17 Commits
Author SHA1 Message Date
Atsushi Eno 444737022e 2009-03-12 Atsushi Enomoto <[email protected]>
* SerializationMap.cs, KnownTypeCollection.cs :
	  support CollectionDataContract-based dictionary too.

	* XmlObjectSerializerTest.cs : added test for dictionary with
	  CollectionDataContractAttribute.


svn path=/trunk/mcs/; revision=129128
2009-03-12 09:29:40 +00:00
Atsushi Eno 2fc4ce96e5 2009-03-12 Atsushi Enomoto <[email protected]>
* SerializationMap.cs, KnownTypeCollection.cs :
	  added support for dictionary serialization (not for
	  CollectionDataContract-attributed dictionary yet).

	* XmlObjectSerializerTest.cs : added tests for IDictionary
	  serialization (both generic and non-generic).


svn path=/trunk/mcs/; revision=129125
2009-03-12 08:37:33 +00:00
Atsushi Eno f936428455 2009-03-11 Atsushi Enomoto <[email protected]>
* XmlFormatterSerializer.cs, XmlObjectSerializer.cs,
	  XmlFormatterDeserializer.cs, KnownTypeCollection.cs :
	  add more xsi:type to cover collection items.

	* XmlObjectSerializerTest.cs : test for generic IList of
	  DictionaryEntry. (no Hashtable serialization yet.)


svn path=/trunk/mcs/; revision=129068
2009-03-11 15:03:02 +00:00
Atsushi Eno 9259c423b0 2009-03-11 Atsushi Enomoto <[email protected]>
* KnownTypeCollection.cs : fix generic argument names in xml.
	  They should use xmlized names instead of raw type name.
	* XmlFormatterDeserializer.cs : remove extra Console.WriteLine.

	* XmlObjectSerializerTest.cs : test for generic IList of KeyValuePair
	  (it is still different from full IDictionary support...!).


svn path=/trunk/mcs/; revision=129055
2009-03-11 11:52:34 +00:00
Atsushi Eno 4906f1a6b3 2009-03-11 Atsushi Enomoto <[email protected]>
* SerializationMap.cs : implemented generic IList
          deserialization.


        * XmlObjectSerializerTest.cs : test for generic IList
          serialization.

        * Makefile: added -r:System.Core.



svn path=/trunk/mcs/; revision=129045
2009-03-11 06:26:09 +00:00
Atsushi Eno 92713f5d7c 2009-03-10 Atsushi Enomoto <[email protected]>
* KnownTypeCollection.cs : fix for generic serialization.

	* XmlObjectSerializerTest.cs : test for generic type serialization.


svn path=/trunk/mcs/; revision=129001
2009-03-10 18:21:07 +00:00
Jonathan Pryor 3cfe05c157 * System.Xml/UniqueId.cs: Remove most [MonoTODO]s and
NotImplementedExceptions.  Revert the 2009-02-12 UniqueId.IsGuid 
	  "fix", as .NET says that new UniqueId(new Guid()).IsGuid==false 
	  (which makes no sense, as .ToString() on the same instance includes 
	  the "urn:uuid:" prefix, which is used by Guids...).
	* Test/System.Xml/UniqueIdTest.cs: Add tests for all members.

svn path=/trunk/mcs/; revision=126911
2009-02-14 03:33:07 +00:00
Jonathan Pryor e1b0befb1a * System.Xml/XmlDictionaryWriter.cs: Implement
WriteValue(IStreamProvider).
	* Test/System.Xml/XmlDictionaryWriterTest.cs: Test 
	  WriteValue(IStreamProvider).

svn path=/trunk/mcs/; revision=126867
2009-02-13 20:55:12 +00:00
Jonathan Pryor 39d3548bd8 * System.Xml/XmlDictionaryWriter.cs: Implement
WriteTextNode(XmlDictionaryReader,bool).  This requires changes to
	  WriteNode(), as testing had determined that WriteTextNode() is used
	  instead of WriteString() for Text nodes and attribute values when
	  called via WriteNode().
	* Test/System.Xml/XmlDictionaryWriterTest.cs: Test 
	  WriteNode(XmlDictionaryReader), WriteNode(XmlReader), and 
	  WriteTextNode().

svn path=/trunk/mcs/; revision=126853
2009-02-13 19:39:20 +00:00
Atsushi Eno 4e22f2b6e0 2009-02-13 Atsushi Enomoto <[email protected]>
* SerializationMap.cs, DataContractSerializer.cs,
	  KnownTypeCollection.cs : now .NET 3.5/SP1 supports non-contract
	  type serialization.

	* XmlObjectSerializerTest.cs : fixed non-contract serialization
	  tests and remove some NotWorking.


svn path=/trunk/mcs/; revision=126813
2009-02-13 10:57:50 +00:00
Atsushi Eno 2a959d05da 2009-02-13 Atsushi Enomoto <[email protected]>
* SerializationMap.cs, KnownTypeCollection.cs : couple of refactoring
	  to simplify code base and handle CollectionDataContract namespace.

	* XmlObjectSerializerTest.cs : fixed collection contract test and
	  added some notes.


svn path=/trunk/mcs/; revision=126807
2009-02-13 08:43:01 +00:00
Atsushi Eno 5edad3625a 2009-02-13 Atsushi Enomoto <[email protected]>
* DataContractSerializer.cs : remove extra writexmlns.
	* SerializationMap.cs : allow DataMember of collection contract type
	  as read-only.
	* KnownTypeCollection.cs : it was not iterating interfaces to find
	  IEnumerable<T> correctly.

	* XmlObjectSerializerTest.cs : added couple of test fixes in
	  collection serialization tests.


svn path=/trunk/mcs/; revision=126802
2009-02-13 07:35:55 +00:00
Jonathan Pryor 8556a49e3c * System.Xml/XmlDictionaryWriter.cs: Implement WriteValue(Guid),
WriteValue(TimeSpan), WriteValue(UniqueId).
	* System.Xml/UniqueId.cs: Fix UniqueId.IsGuid, as 
	  `new UniqueId(new Guid())` was previously being detected as a string 
	  value, not a Guid value.
	* Test/System.Xml/XmlDictionaryWriterTest.cs: Test WriteValue(Guid),
	  WriteValue(TimeSpan), WriteValue(UniqueId).

svn path=/trunk/mcs/; revision=126760
2009-02-12 20:56:05 +00:00
Jonathan Pryor c8f1af3dd7 * System.Runtime.Serialization_test.dll.sources: Add
System.Xml/XmlDictionaryWriterTest.cs to the test build.
	* System.Xml/XmlDictionaryWriter.cs (WriteStartElement): Add parameter 
	  checking and default arguments to avoid NullReferenceExceptions.
	* Test/System.Xml/XmlDictionaryWriterTest.cs: Added; test
	  XmlDictionaryWriter.WriteElementString().

svn path=/trunk/mcs/; revision=126751
2009-02-12 19:47:59 +00:00
Jonathan Pryor 79d3cca79c * System.Runtime.Serialization_test.dll.sources: Add
System.Xml/XmlDictionaryStringTest.cs to the test build.
	* System.Xml/XmlDictionaryString.cs: Add constructor argument checking.
	* Test/System.Xml/XmlDictionaryStringTest.cs: Added; tests for 
	  XmlDictionaryString.

svn path=/trunk/mcs/; revision=126680
2009-02-12 03:43:25 +00:00
Atsushi Eno b97d68da36 2008-11-23 Atsushi Enomoto <[email protected]>
* SerializationMap.cs, XmlFormatterSerializer.cs,
	  XmlFormatterDeserializer.cs, DataContractAttribute.cs,
	  CollectionDataContractAttribute.cs, KnownTypeCollection.cs :
	  support IsReference (new in 3.5 SP1).

	* XmlObjectSerializerTest.cs : added test for IsReference = true.


svn path=/trunk/mcs/; revision=119734
2008-11-23 06:41:06 +00:00
Jb Evain 8b9722d103 move to from olive to mcs
svn path=/trunk/mcs/; revision=111184
2008-08-20 21:22:38 +00:00