Using a vb.net dll in c#. Getting 'invalid argument'
问题 Got a strange one and I know it is something silly but I can't see it for anything! I have a DLL created in VB.net (No I can't change it! :-)) and am calling it from C#. The problems come at the point the object is created in C# and I get the message that it has "some invalid arguments". The constructor code in the DLL is as follows: Sub New(ByRef Connection As IConnection) The code in C# is: IConnection conn = new Connection(); CustomObject test = new CustomObject(conn) It is happy with the