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

Potentially unintended unused variable.

    • Type: Icon: Improvement Improvement
    • Resolution: Done
    • Priority: Icon: Minor - P4 Minor - P4
    • 2.4.2
    • Affects Version/s: 2.4.1
    • Component/s: Serialization
    • None

      In BsonClassMapSerializer<>.TryGetMemberSerializationInfo(...), the variable nominalType is not used when constructing the BsonSerializationInfo to be returned; serializer.ValueType is used instead.

      Using nominalType seems more reasonable, but I'm not certain. If using serializer.ValueType is intended, remove the unused variable; otherwise, use it.

            Assignee:
            robert@mongodb.com Robert Stam
            Reporter:
            mindless2112 Carl
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated:
              Resolved: