call F# dll in C#

后端 未结 3 2258
不知归路
不知归路 2021-02-09 13:30

How can I create F# dll and call it in C#? Thank you

3条回答
  •  野性不改
    2021-02-09 14:22

    There's no real trick; like

    http://lorgonblog.spaces.live.com/blog/cns!701679AD17B6D310!307.entry

    only the other way around. One thing to note is that if you don't specify a namespace in the F# code, all your top-level definitions by default end up in a module with the name of the file, so if you have Program.fs then you may reference Program.Whatever from C#.

提交回复
热议问题