Commit Graph
181 Commits
Author SHA1 Message Date
Atsushi Eno 85cc330c95 Don't put KnownTypeAttributes on enums. 2010-10-22 16:23:24 +09:00
Atsushi Eno 2e7af0d301 Make generated type names unique. 2010-10-22 15:49:51 +09:00
Atsushi Eno a16debc2c7 When finding SerializationMap for resolved type, use type as the key rather than name.
Make the fixed WCF test show more specific failure details.
2010-10-05 23:59:01 +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 2e0e15d706 Adjust namespace prefix indexes as it is repeatedly used. (It could result in duplicate prefix.) 2010-10-05 00:05:37 +09:00
Atsushi Eno 6f397f56c5 rename source file. 2010-10-01 15:33:11 +09:00
Atsushi Eno 742f259da5 Remove old code. 2010-10-01 15:30:07 +09:00
Atsushi Eno a2b7ad61cc [wcf] serialization member namespace was wrong when root namesp ace is given. Fixed possible infinite loop during DefaultTypeMap initialization.
MS Basic/Contract/Data/POCO sample got working fine.
2010-10-01 11:32:19 +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
Rolf Bjarne Kvinge c81152a0ab XmlFormatterDeserializer: handle ReflectionTypeLoadExceptions better 2010-09-10 12:44:35 +02:00
Jb Evain bd3580ecd8 Factorize the System.Runtime.Serialization monotouch and monodroid sources into a mobile.sources 2010-09-08 18:48:35 +02:00
Jb Evain 4f87b29b20 Enable the System.Runtime.Serialization build for monodroid 2010-09-08 18:48:31 +02:00
Atsushi Eno 9fb2421ccf Use CollectionDataContractAttribute.ItemName for collection item serialization. 2010-09-01 23:59:50 +09:00
Atsushi Eno c893d9c638 ISerializable type didn't iterate all base types to pick up all target fields. 2010-08-28 02:07:56 +09:00
Atsushi Eno 57c4337d79 Use XmlConvert.EncodeLocalName() to not introduce xml syntax violation for not-WF member names. 2010-08-28 01:49:04 +09:00
Atsushi Eno d7f0384e44 For IXmlSerializable types it should first try static GetSchema() for QName. WS-DD uses it. 2010-08-06 19:43:20 +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 1cf4ad6e68 2010-07-06 Atsushi Enomoto <[email protected]>
* SerializationMap.cs : add OnDeserializing/OnDeserialized support.


svn path=/trunk/mcs/; revision=159959
2010-07-06 14:13:06 +00:00
Sebastien Pouliot 9ce5913617 2010-06-23 Sebastien Pouliot <[email protected]>
* XmlFormatterDeserializer.cs: Fix some issues in Moonlight when 
	some referenced assemblies cannot be found or loaded


svn path=/trunk/mcs/; revision=159460
2010-06-23 20:54:56 +00:00
Sebastien Pouliot 522a6f72a3 2010-06-03 Sebastien Pouliot <[email protected]>
* SerializationMap.cs: NET_2_1 needs cast too


svn path=/trunk/mcs/; revision=158410
2010-06-03 15:55:57 +00:00
Atsushi Eno 79293409b6 2010-06-02 Atsushi Enomoto <[email protected]>
* SerializationMap.cs : fix PeerNodeAddress serialization regression.


svn path=/trunk/mcs/; revision=158324
2010-06-02 09:48:18 +00:00
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 834745324f 2010-06-01 Atsushi Enomoto <[email protected]>
* SerializationMap.cs : for IXmlSerializable it uses CreateInstance()
	  instead of GetUninitializedObject(). Fixed bug #601785.


svn path=/trunk/mcs/; revision=158251
2010-06-01 04:41:20 +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 37f125e581 2010-05-19 Atsushi Enomoto <[email protected]>
* XmlFormatterDeserializer.cs : Array of something with non-default
	  namespace should be deserialized as well. Required for fixing
	  PeerResolvers ResolveResponseInfo serialization test case.


svn path=/trunk/mcs/; revision=157531
2010-05-19 07:58:59 +00:00
Andreia Gaita 0920b8c4bc * SerializationMap.cs: when deserializing, it is possible that the
DataMemberInfo objects being matched against the xml don't have
  a set namespace because they were created from
  DefaultTypeMap.GetDataMembers(), so only use the namespace for
  comparison if it's not null (fixes part of #599667)

svn path=/trunk/mcs/; revision=157523
2010-05-19 03:41:22 +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
Atsushi Eno ffd627fed2 2010-04-05 Atsushi Enomoto <[email protected]>
* DataContractExporter-new.cs : do not expect contract attribute on
	  dictionary map. Non-contract type also uses this.


svn path=/trunk/mcs/; revision=154785
2010-04-05 08:55:53 +00:00
Atsushi Eno c7ce2f9886 2010-04-05 Atsushi Enomoto <[email protected]>
* SerializationMap.XsdExporter.cs, DataContractExporter-new.cs :
	  handle schema export for SharedTypeMap.


svn path=/trunk/mcs/; revision=154784
2010-04-05 08:41:32 +00:00
Atsushi Eno 4cba78f6ff 2010-04-05 Atsushi Enomoto <[email protected]>
* KnownTypeCollection.cs, SerializationMap.cs : split SharedTypeMap
	  .ctor() and initialization. Fixed infinite loop for some
	  [Serializable] types (such as Assembly).


svn path=/trunk/mcs/; revision=154783
2010-04-05 08:22:02 +00:00
Atsushi Eno 91fef293cb 2010-04-02 Atsushi Enomoto <[email protected]>
* DataContractSerializer : implement IsStartObject().


svn path=/trunk/mcs/; revision=154711
2010-04-02 12:12:50 +00:00
Jb Evain b3f3ef56c8 rename net_2_1 to moonlight
svn path=/trunk/mcs/; revision=153638
2010-03-16 08:32:37 +00:00
Atsushi Eno aef25e8c95 2010-03-12 Atsushi Enomoto <[email protected]>
* KnownTypeCollection.cs, SerializationMap.cs :
	  some refactoring to implement MessageDescription.XmlName.


svn path=/trunk/mcs/; revision=153497
2010-03-12 11:15:10 +00:00
Atsushi Eno 0b21cbe881 2010-03-08 Atsushi Enomoto <[email protected]>
* TypeElementCollection.cs : more corcompare fixes.


svn path=/trunk/mcs/; revision=153238
2010-03-08 10:06:56 +00:00
Atsushi Eno b94ce5cb72 2010-03-04 Atsushi Enomoto <[email protected]>
* SerializationMap.cs : return array instance if the runtime type is
	  an array (it used to return ArrayList without conveting to array).

	* XmlObjectSerializerTest.cs : test for empty array deserialization.


svn path=/trunk/mcs/; revision=153004
2010-03-04 10:03:23 +00:00
Atsushi Eno 723254f67b 2010-03-04 Atsushi Enomoto <[email protected]>
* TypeElement.cs, DeclaredTypeElement.cs,
	  ParameterElementCollection.cs, DataContractSerializerSection.cs,
	  ParameterElement.cs :
	  Looks like MSDN pages are quite incorrect. updated to match what
	  status page tells.


svn path=/trunk/mcs/; revision=152991
2010-03-04 03:45:41 +00:00
Atsushi Eno 50f9dab2ad 2010-03-03 Atsushi Enomoto <[email protected]>
* DataContractSerializerSection.cs : new.
	* XmlFormatterSection.cs : remove.
	* DeclaredTypeElementCollection.cs
	  TypeElement.cs
	  DeclaredTypeElement.cs
	  SerializationSectionGroup.cs
	  ParameterElementCollection.cs
	  TypeElementCollection.cs
	  ParameterElement.cs : implement.

	* System.Runtime.Serialization.dll.sources:
	  update configuration sources.


svn path=/trunk/mcs/; revision=152908
2010-03-03 09:26:03 +00:00
Atsushi Eno 25414103fa 2010-03-01 Atsushi Enomoto <[email protected]>
* SerializationMap.XsdExporter.cs, XsdDataContractExporter-new.cs:
	  refresh implementation to reflect the latest WCF impl.
	* SerializationMap.cs : make types partial.

	* XsdDataContractExporterTest.cs : remove [NotWorking].

	* System.Runtime.Serialization.dll.sources: use new implementation
	  (will be renamed later).


svn path=/trunk/mcs/; revision=152657
2010-03-01 09:56:10 +00:00
Atsushi Eno 38b9e74ca6 2010-02-19 Atsushi Enomoto <[email protected]>
* XsdDataContractImporter.cs : fix extension type name (and comment).


svn path=/trunk/mcs/; revision=152074
2010-02-19 14:53:13 +00:00
Atsushi Eno c5943145a2 2010-02-19 Atsushi Enomoto <[email protected]>
* XsdDataContractImporter.cs : added dictionary support.

	* ns28.xsd ... ns31.xsd : new test files.
	* ns-readme.txt : added above.

	* XsdDataContractImporterTest.cs : added Dictionary export tests.


svn path=/trunk/mcs/; revision=152071
2010-02-19 13:33:48 +00:00
Atsushi Eno 0a3874559f 2010-02-18 Atsushi Enomoto <[email protected]>
* XsdDataContractImporter-new.cs, XsdDataContractImporter.cs :
	  replaced implementation.
	* ImportOptions.cs : add correct MonoTODOs.

	* XsdDataContractImporterTest.cs : enabled new tests.


svn path=/trunk/mcs/; revision=151975
2010-02-18 11:57:44 +00:00
Atsushi Eno 567c75b0eb 2010-02-18 Atsushi Enomoto <[email protected]>
* XsdDataContractImporter-new.cs : output [KnownType] to expose
	  base/derived type relationship.

	* ns-readme.txt : another line of note.


svn path=/trunk/mcs/; revision=151973
2010-02-18 11:46:26 +00:00
Atsushi Eno 5f9662a15d 2010-02-18 Atsushi Enomoto <[email protected]>
* XsdDataContractImporter-new.cs : fix GenerateInternal.


svn path=/trunk/mcs/; revision=151971
2010-02-18 11:34:48 +00:00
Atsushi Eno 1f355fc554 2010-02-17 Atsushi Enomoto <[email protected]>
* XsdDataContractImporter-new.cs : refresh implementation that is
	  not based on xml serialization. Not enabled yet.
	* KnownTypeCollection.cs : add cosmetic comment.

	* ns0,xsd ... ns27.xsd : new test files.
	* ns-readme.txt : description.

	* XsdDataContractImporterTest.cs : added a bunch of tests for new
	  implementation. Disable yet.


svn path=/trunk/mcs/; revision=151902
2010-02-17 11:28:31 +00:00
Atsushi Eno 505b2c1d1a 2010-02-10 Atsushi Enomoto <[email protected]>
* XmlDictionaryWriter.cs : try to lookup dictionary string in
	  WriteNode(). This is part of #577139 fix (probably).


svn path=/trunk/mcs/; revision=151191
2010-02-10 07:32:06 +00:00