Uploaded image for project: 'C# Driver'
  1. C# Driver
  2. CSHARP-476

Support parameterized constructors on deserialization

    Details

    • Type: New Feature
    • Status: Closed
    • Priority: Minor - P4
    • Resolution: Fixed
    • Affects Version/s: 1.4.2
    • Fix Version/s: 1.8
    • Component/s: None
    • # Replies:
      6
    • Last comment by Customer:
      true

      Description

      I would be happy to see support for parameterized constructors during deserialization process. The target constuctor may be marked with special attribute or selected automatically. Example of this feature is in JSON.NET.
      This feature is very important when use Code Contracts. Current deserialization implementation with default parameter-less constructor fully incompatible with code contracts "invariants" so I forced to manually implement deseriaization for each type.

        Attachments

          Issue Links

            Activity

              People

              • Votes:
                1 Vote for this issue
                Watchers:
                0 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved:
                  Days since reply:
                  4 years, 44 weeks, 3 days ago
                  Date of 1st Reply: