Similar to this, but with a twist.
VB function declaration:
Public Shared Function MyFunc(ByVal Name As String, ByVal Num As Integer, Optional ByRef obj As Object = Nothing, Optional ByVal val As Integer = 0) As Boolean
When calling in C# (different solution, I copied over the .dll
)
Error 164 No overload for method 'MyFunc' takes 2 arguments
Metadata shows the function to be:
public static bool MyFunc(string Name, int Num, ref object obj, int val = 0);
Why did one Optional
make it through while the other didn't?