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

Support parameterized constructors on deserialization

    XMLWordPrintableJSON

Details

    • Icon: New Feature New Feature
    • Resolution: Done
    • Icon: Minor - P4 Minor - P4
    • 1.8
    • 1.4.2
    • None

    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

        Activity

          People

            robert@mongodb.com Robert Stam
            proman Pantyushin Roman
            Votes:
            1 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: