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

Allow serialization to take into the XmlIgnore attribute

    • Type: Icon: Improvement Improvement
    • Resolution: Won't Fix
    • Priority: Icon: Minor - P4 Minor - P4
    • None
    • Affects Version/s: 1.8
    • Component/s: None
    • None
    • None
    • Major Change
    • None
    • None
    • None
    • None
    • None
    • None

      Currently, the default serialization mechanism ignores the [XmlIgnore] flag on attributes.

      Taking this attribute into account should not be default behavior as there may be people using this for other things.

      I believe there may be a workaround to this using conventions and also something is being worked on for 1.8, so any information on the workaround may be helpful to people looking into this.

      The use case is that we have a large number of classes that we currently do serialize into Binary and use the XmlIgnore attribute to remove some of the properties. We want now add some additional serialization of the objects into Mongo.

            Assignee:
            Unassigned Unassigned
            Reporter:
            martinthwaites Martin Thwaites
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Created:
              Updated:
              Resolved: