[Mono-dev] TypeForwardedFrom
Neale Ferguson
NealeFerguson at verizon.net
Mon Apr 15 19:10:30 UTC 2013
Using the patches attached to this email I am now able to serialize on Mono
and deserialize on Windows using ObservableCollections. The only differences
I see between the serializations on each platform is as follows:
--- mono.decode 2013-04-15 14:44:18.952996746 -0400
+++ win.decode 2013-04-15 12:40:56.654035312 -0400
@@ -1,14 +1,14 @@
Element code: 00 (Header)
Element code: 12 (Assembly)
Assembly ID: 2
- Assembly Name: Program
+ Assembly Name: Program, Version=0.0.0.0, Culture=neutral,
PublicKeyToken=null
Element code: 12 (Assembly)
Assembly ID: 3
- Assembly Name: WindowsBase
+ Assembly Name: WindowsBase, Version=3.0.0.0, Culture=Neutral,
PublicKeyToken=31bf3856ad364e35
Element code: 05 (External Object)
Object ID: 1
Class name:
SerializationPrototype.DataObjectWithObservableCollection
Field count: 3
@@ -46,12 +46,12 @@
Field Specs:
System.Collections.ObjectModel.ObservableCollection`1+SimpleMonitor[[System.
Stri
ng, mscorlib, Version=4.0.0.0, Culture=neutral,
PublicKeyToken=b77a5c561934e089]
]
[Defined in 3]
- System.Collections.Generic.IList`1[[System.String, mscorlib,
Version=4.0.0.0, Cu
- lture=neutral, PublicKeyToken=b77a5c561934e089]]
+ System.Collections.Generic.List`1[[System.String, mscorlib,
Version=4.0.0.0, Cul
+ ture=neutral, PublicKeyToken=b77a5c561934e089]]
External Id: 3
Values:
Generic: [9] 6
Run Time: [9] 7
i.e. Windows defaults to using the full assembly name and where we use
System.Collections.Generic.IList it uses System.Collections.Generic.List -
I'm not sure how significant this is but it doesn't cause problems
serializing/deserializing on each platform.
Neale
-------------- next part --------------
A non-text attachment was scrubbed...
Name: serial.diff
Type: application/octet-stream
Size: 13906 bytes
Desc: not available
URL: <http://lists.ximian.com/pipermail/mono-devel-list/attachments/20130415/3e795be7/attachment.obj>
More information about the Mono-devel-list
mailing list