[Mono-bugs] [Bug 693306] New: Failed to serialize private fields of base data contract.

bugzilla_noreply at novell.com bugzilla_noreply at novell.com
Thu May 12 02:55:44 EDT 2011


https://bugzilla.novell.com/show_bug.cgi?id=693306

https://bugzilla.novell.com/show_bug.cgi?id=693306#c0


           Summary: Failed to serialize private fields of base data
                    contract.
    Classification: Mono
           Product: Mono: Class Libraries
           Version: 2.10.x
          Platform: x86
        OS/Version: Ubuntu
            Status: NEW
          Severity: Major
          Priority: P5 - None
         Component: WCF
        AssignedTo: atsushi at ximian.com
        ReportedBy: sakno at tncor.com
         QAContact: mono-bugs at lists.ximian.com
          Found By: ---
           Blocker: ---


User-Agent:       Mozilla/5.0 (compatible; MSIE 9.0; Windows NT 6.1;
Trident/5.0)

DataContractSerializer doesn't serialize private fields of all base data
contracts. But public fields are serialized successfully.
Additional information is described in the following MSDN article:
http://msdn.microsoft.com/en-us/library/ms733127.aspx.
Citation:
"Member accessibility levels (internal, private, protected, or public) do not
affect the data contract in any way".

Reproducible: Always

Steps to Reproduce:
1. Declare a new data contract named 'A' with private read-only field 'fa';
2. Derive another data contract 'B' from 'A'.
3. Create a new instance of 'B';
4. Serialize instance of 'B' with DataContractSerializer.
Actual Results:  
Normal serialization/deserialization.

Expected Results:  
Serialization/deserialization of public fields and fields declared at the top
of data contract hierarchy.

-- 
Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the QA contact for the bug.


More information about the mono-bugs mailing list