Can i make obejct of a VB class from C# class
Can i make obejct of a VB class fr开发者_Python百科om C# class, if possible then what i'll have to do?
Yes. You'll have to compile the VB class using the VB compiler first. The easiest way to do this is to have the C# code and the VB code in separate assemblies, in separate projects. You can then include the VB project as a reference in the C# project and use it that way.
You can certainly use a class in a dll created in vb.net in a C# project. However you won't be able to do that natively inside Visual Studio for the same project.
1) Add reference to VB library you want to use.
2) Add namespace in your code.
3) Create your object and use it.
精彩评论