How to use a dll written for VB.Net in C#

后端 未结 3 1182
无人共我
无人共我 2021-01-26 07:53

I have question to ask.

I have a dll file written for reading&writing data on USB. To use dll in VB.Net, one needs to integrate a .vb file which interface to that dl

3条回答
  •  无人共我
    2021-01-26 08:29

    Assuming the VB.NET code is CLS compliant, you can simply add a reference to it to your C# project.

    At this point, the namespace and all public members in the DLL will be available to your C# code.

提交回复
热议问题