[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



           Summary: Failed to serialize private fields of base data
    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;

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:
"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