BsonBinaryData constructor throws incorrect ArgumentException message

XMLWordPrintableJSON

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

      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 Stam
              Reporter:
              James Hadwen
              Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

                Created:
                Updated:
                Resolved: