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

BsonBinaryData constructor throws incorrect ArgumentException message

    • Type: Icon: Bug Bug
    • Resolution: Fixed
    • Priority: Icon: Trivial - P5 Trivial - P5
    • 2.5.1
    • Affects Version/s: 2.5
    • Component/s: BSON
    • None
    • Fully Compatible

      Error thrown in the lines:

      var message = string.Format(
                              "SubType must be {0}, not {1}, when GuidRepresentation is {2}.",
                              expectedSubType, subType, GuidRepresentation);
      throw new ArgumentException(message);
      

      However this.GuidRepresentation has yet to be initialized, parameter should actually be guidRepresentation.

            Assignee:
            robert@mongodb.com Robert Stam
            Reporter:
            james.hadwen James Hadwen
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated:
              Resolved: