Commit Graph
41 Commits
Author SHA1 Message Date
Atsushi Eno a925966529 2009-03-12 Atsushi Enomoto <[email protected]>
* SerializationMap.cs : make generic type parsing sloppy.
          because we don't know some cryptic hash algorithm:
          http://jeffbarnes.net/portal/blogs/jeff_barnes/archive/2007/05/10/wcf-serialization-and-generics.aspx


svn path=/trunk/mcs/; revision=129155
2009-03-12 16:25:48 +00:00
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 d9e90b8d10 2009-03-12 Atsushi Enomoto <[email protected]>
* SerializationMap.cs : cosmetic !NET_2_1 fix (no effect).
	* KnownTypeCollection.cs : use ICollection<> and IList instead of
	  IEnumerable. This causes confusion for dictionary.


svn path=/trunk/mcs/; revision=129124
2009-03-12 04:31:01 +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 4c9b51db6d 2009-03-11 Atsushi Enomoto <[email protected]>
* SerializationMap.cs : eliminate whitespace misuses.


svn path=/trunk/mcs/; revision=129053
2009-03-11 09:37:01 +00:00
Atsushi Eno db1aa31255 2009-03-11 Atsushi Enomoto <[email protected]>
* SerializationMap.cs : actually it could just be
          ICollection<T>.


svn path=/trunk/mcs/; revision=129051
2009-03-11 09:06:06 +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
Chris Toshok 53fd125cbe In System.Runtime.Serialization/System.Xml:
2009-03-02  Chris Toshok  <[email protected]>

	* XmlBinaryDictionaryReader.cs, XmlSimpleDictionaryReader.cs: 2.1
	has HasValue.

In System.XML/System.Xml:
2009-03-02  Chris Toshok  <[email protected]>

	* XmlReader.cs, XmlTextReader.cs, XmlTextReader2.cs,
	EntityResolvingXmlReader.cs: 2.1 has HasValue.


In System.XML/Mono.Xml:
2009-03-02  Chris Toshok  <[email protected]>

	* SubtreeXmlReader.cs, XmlFilterReader.cs: 2.1 has HasValue.

In System.Xml.Linq/System.Xml.Linq:
2009-03-02  Chris Toshok  <[email protected]>

	* XNodeReader.cs: 2.1 has HasValue.

In System.ServiceModel.Web/System.Runtime.Serialization.Json:
2009-03-02  Chris Toshok  <[email protected]>

	* JsonReader.cs: 2.1 has HasValue.


svn path=/trunk/mcs/; revision=128406
2009-03-03 00:44:33 +00:00
Atsushi Eno d0c02bc418 2009-02-27 Atsushi Enomoto <[email protected]>
* SerializationMap.cs : look for unordered members first, in
          different iteration. Got SL OpenStreetMap working.


svn path=/trunk/mcs/; revision=128231
2009-02-27 16:13:11 +00:00
Geoff Norton 2ad30c4516 2009-02-19 Geoff Norton <[email protected]>
* Fix the build, these all need to loose this #if guard.

svn path=/trunk/mcs/; revision=127378
2009-02-19 07:09:22 +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
Atsushi Eno 3de9acfaf0 2009-02-13 Atsushi Enomoto <[email protected]>
* SerializationMap.cs : remove use of non-2.1 CreateInstance().
        * XmlFormatterDeserializer.cs : allow empty element.


svn path=/trunk/mcs/; revision=126857
2009-02-13 20:18:57 +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 6713e65b43 2009-02-13 Atsushi Enomoto <[email protected]>
* SerializationMap.cs : oops, remove debug lines.


svn path=/trunk/mcs/; revision=126803
2009-02-13 07:37:18 +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
Jonathan Pryor 1deef7537f * System.Runtime.Serialization.dll.sources: Add
System.Xml/IFragmentCapableXmlDictionaryWriter.cs to the build.
	* IFragmentCapableXmlDictionaryWriter.cs: Added.

svn path=/trunk/mcs/; revision=126493
2009-02-10 19:09:24 +00:00
Atsushi Eno ac6ebb66e6 2009-02-03 Atsushi Enomoto <[email protected]>
* SerializationMap.cs : a bit more detailed error message.


svn path=/trunk/mcs/; revision=125504
2009-02-03 11:33:13 +00:00
Atsushi Eno a830469ea9 2009-01-23 Atsushi Enomoto <[email protected]>
* KnownTypeCollection.cs : similar fix to the previous one,
          on uint16.


svn path=/trunk/mcs/; revision=124294
2009-01-23 07:06:46 +00:00
Alan McGovern 5a3d836896 2009-01-22 Alan McGovern <[email protected]>
* KnownTypeCollection.cs : The byte overload doesn't exist in
        Silverlight, so cast the byte to an int instead.



svn path=/trunk/mcs/; revision=124205
2009-01-22 14:42:10 +00:00
Jb Evain d6e04d2576 2009-01-17 Jb Evain <[email protected]>
* AssemblyInfo.cs: use appropriate public key for the NET_2_1 profile.


svn path=/trunk/mcs/; revision=123709
2009-01-17 20:45:20 +00:00
Atsushi Eno 9b1f37438a 2008-11-23 Atsushi Enomoto <[email protected]>
* DataContractAttribute.cs : remove MonoTODO.


svn path=/trunk/mcs/; revision=119736
2008-11-23 07:11:22 +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
Atsushi Eno 6f1b46e6b7 2008-11-23 Atsushi Enomoto <[email protected]>
* DataContractSerializer.cs : remove extra type validity check.


svn path=/trunk/mcs/; revision=119731
2008-11-23 04:45:01 +00:00
Atsushi Eno 628a182954 2008-11-23 Atsushi Enomoto <[email protected]>
* System.Runtime.Serialization_test.dll.soruces :
	  remove ALL Mainsoft serialization tests that completely fail under
	  .NET and reduce 107 test failures out of 113.
	  They are English (language) dependent.


svn path=/trunk/mcs/; revision=119730
2008-11-23 04:37:37 +00:00
Atsushi Eno fd1941cfd8 2008-11-23 Atsushi Enomoto <[email protected]>
* XmlFormatterSerializer.cs : one object could not be serialized
	  twice in non-circular situation.


svn path=/trunk/mcs/; revision=119729
2008-11-23 04:23:38 +00:00
Jb Evain 7fc2c6a4a9 in .:
2008-09-09  Atsushi Enomoto  <[email protected]>
			Jb Evain  <[email protected]>

	* net_2_1_raw_System.Runtime.Serialization.dll.sources: new sources
	file for the SL2 profile.
	* Makefile: add support for SL2 profile.

in System.Xml.Schema:
2008-09-09  Atsushi Enomoto  <[email protected]>
			Jb Evain  <[email protected]>

	* XmlSchema.cs: add helper internal class.

in System.Xml:
2008-09-09  Atsushi Enomoto  <[email protected]>
			Jb Evain  <[email protected]>

	* XmlBinaryDictionaryReader.cs, XmlSimpleDictionaryReader.cs:
	add support to build on the net_2_1 profile.

in System.Runtime.Serialization:
2008-09-09  Atsushi Enomoto  <[email protected]>
			Jb Evain  <[email protected]>

	* IDataContractSurrogater.cs, SerializationMap.cs:
	add support to build on the net_2_1 profile.


svn path=/trunk/mcs/; revision=112586
2008-09-09 13:34:57 +00:00
Jb Evain 5c8bf36fb7 remove unecessary InternalsVisibleTo attributes
svn path=/trunk/mcs/; revision=111208
2008-08-20 22:24:29 +00:00
Jb Evain e249dca8d2 adapt olive Makefiles to mcs
svn path=/trunk/mcs/; revision=111193
2008-08-20 21:32:10 +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
Atsushi Eno bb35f85608 It is obsolete. We have WCF stuff in Olive.
svn path=/trunk/mcs/; revision=83800
2007-08-10 07:29:51 +00:00
Atsushi Eno 2292fde93d 2005-09-26 Atsushi Enomoto <[email protected]>
* XmlDictionaryString.cs, XmlDictionary.cs,
	  XmlDictionaryReaderQuotas.cs, XmlDictionaryReader.cs:
	  added some implementations.


svn path=/trunk/mcs/; revision=50788
2005-09-26 16:47:46 +00:00
Atsushi Eno bba1e98ee8 sigh, I have messed my .svn directory. It is sys.runtime.serialization.dll.
svn path=/trunk/mcs/; revision=50520
2005-09-22 17:38:06 +00:00