BsonSerializationInfoFinder VisitMethodCall

XMLWordPrintableJSON

    • Type: Improvement
    • Resolution: Done
    • Priority: Major - P3
    • None
    • Affects Version/s: 1.9.2
    • Component/s: BSON, LINQ, Serialization
    • None
    • Environment:
      N/A
    • None
    • Fully Compatible
    • None
    • None
    • None
    • None
    • None
    • None

      BsonSerializationInfoFinder VisitMethodCall doesn't address the method GetValue case.

      I'm currently developing dynamic linq, where I leverage the GetValue to build a method then create an expression with it. Suggested update to the VisitMethodCall,

      protected override BsonSerializationInfo VisitMethodCall(MethodCallExpression node)
      {
      switch (node.Method.Name)

      { case "ElementAt": return VisitElementAt(node); case "GetValue": case "get_Item": return VisitGetItem(node); }

      return null;
      }

      It works like a champ now.

      Thanks,
      Dama

            Assignee:
            Unassigned
            Reporter:
            Dama Reffett
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Created:
              Updated:
              Resolved: