I have a method written in VB.NET. It looks like this:
Shared Sub SomeMethod(ByVal Id As Guid,
Optional ByVal str1 As String = "foo",
Optional ByVal str2 As String = "")
I want to call this method from C # 3.0, and I want it to use its default arguments. I tried to skip System.Reflection.Missing.Value, but I cannot use it as a String.
Is there any way to do this?
Thanks in advance for your help.
source
share