Bug 13806 - DataContract serialization should respect base data contract's IsReference
Summary: DataContract serialization should respect base data contract's IsReference
Status: NEW
Alias: None
Product: Class Libraries
Classification: Mono
Component: WCF assemblies (show other bugs)
Version: master
Hardware: PC Linux
: --- normal
Target Milestone: Untriaged
Assignee: Bugzilla
URL:
Depends on:
Blocks:
 
Reported: 2013-08-07 06:01 UTC by foka
Modified: 2013-08-07 06:12 UTC (History)
1 user (show)

See Also:
Tags:
Is this bug a regression?: ---
Last known good build:


Attachments
App that shows the bug (1.25 KB, text/plain)
2013-08-07 06:02 UTC, foka
Details

Description foka 2013-08-07 06:01:24 UTC
DataContract serialization should respect base data contract's IsReference. On MS.NET it is respected. On Mono it is not.

Check the attached app. Compile it with: mcs Program.cs -r:System.Runtime.Serialization
Comment 1 foka 2013-08-07 06:02:06 UTC
Created attachment 4561 [details]
App that shows the bug
Comment 2 foka 2013-08-07 06:12:17 UTC
This is my solution:
https://github.com/foka/mono/commit/c1dcee8cc9db6877d5a4f1238cf69ddc9c486624

I return true on first base-data-contract with IsReference=true, because it's forbidden on ms.net to redefine IsReference already defined in base-data-contract (it throws an exception on explicitly set IsReference with changed value in derived class)

Note You need to log in before you can comment on or make changes to this bug.