I have a class.dll project that compiled in C #. It contains the following code.
public class MyClass{ public int Add(int i,int j) { return (i+j); } public int add(int i,int j) { return (i+j)*2; } }
from a C # project, I can call these functions as follows
public class MyOtherClass{ MyClass mcls=new MyClass(); mcls.Add(1,2); mcls.add(2.3); }
But how can I call it with the VB.Net Project ? I cannot use Visual Studio right now. Therefore, it is very useful if someone provides an answer.
EDIT 1
I have a VB.NET project and I need to add a link to C # dll ( say dll contains MyClass ). So that I can call two methods ( Add(int,int) , add(int,int) ). But in VB.NET, this is case sensitive. Is there any way to achieve this?
EDIT 2
Suppose I added a link to the dll and so I can call the functions.
Dim myObj as New MyClass myObj.Add(1,2) myObj.add(1,2)
If this code works, how does the compiler identify the correct function?
source share