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

Eq should still work when TField is not exactly right (like it used to)

    • Type: Icon: Bug Bug
    • Resolution: Done
    • Priority: Icon: Major - P3 Major - P3
    • 2.4.2
    • Affects Version/s: 2.4.1
    • Component/s: API
    • Labels:
      None

      Hi,
      I have this description on my property and that's fine until version 2.4.0

      
      [BsonRepresentation(BsonType.String)]
      public List<Organization.OrganizationRole> OrganizationRoles { get; set; }
      
      

      Organization.OrganizationRole is a Enum.

      As soon as we upgrade to 2.4.1, we receive a cast exception during deserialization.

      Do we need to setup something different to make it work again?

      Thanks a lot!

            Assignee:
            robert@mongodb.com Robert Stam
            Reporter:
            marco.serina@4ward.it Marco Serina
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated:
              Resolved: