C#'s 'dynamic' in F#

前端 未结 4 707
梦如初夏
梦如初夏 2020-12-31 02:26

One example of using the DLR in C# is as follows:

dynamic dyn = new MyObject();
dyn.MyMethod(); //resolved at runtime
         


        
4条回答
  •  慢半拍i
    慢半拍i (楼主)
    2020-12-31 02:57

    There's a package called FSharp.Interop.Dynamic and that will make it possible to do a call to a dynamic object using the ? operator.

提交回复
热议问题