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

Consider marking ObjectSerializer and similar serializers sealed

    • Type: Icon: Improvement Improvement
    • Resolution: Fixed
    • Priority: Icon: Unknown Unknown
    • 3.0.0
    • Affects Version/s: 3.0.0
    • Component/s: Serialization
    • None
    • Major Change
    • Not Needed
    • Hide

      1. What would you like to communicate to the user about this feature?
      2. Would you like the user to see examples of the syntax and/or executable code and its output?
      3. Which versions of the driver/connector does this apply to?

      Show
      1. What would you like to communicate to the user about this feature? 2. Would you like the user to see examples of the syntax and/or executable code and its output? 3. Which versions of the driver/connector does this apply to?

      Certain IBsonSerializer<T> classes such as ObjectSerializer are not intended to be used as base classes for other serializers. We should review our serializers and mark any "terminal" serializers as sealed. This is a breaking change and should be done for the 3.0.0 release. Changing these serializers to be sealed will make implementing CSHARP-3315 easier.

            Assignee:
            ferdinando.papale@mongodb.com Ferdinando Papale
            Reporter:
            james.kovacs@mongodb.com James Kovacs
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Created:
              Updated:
              Resolved: