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

Support parameterized constructors on deserialization

    • Type: Icon: New Feature New Feature
    • Resolution: Done
    • Priority: Icon: Minor - P4 Minor - P4
    • 1.8
    • Affects Version/s: 1.4.2
    • Component/s: None

      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.

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

              Created:
              Updated:
              Resolved: