-
Type of Parameter
I have created a VB class. There is a method A() which takes optional parameter. Now a C# class inherits this class and wants to call the method a having optional parameter. So what type of parameter should it pass to for the optional parameter to call this method
[B]Question asked by visitor Rohini[/b]
-
Re: Type of Parameter
Hi,
You should pass the normal parameter but what type u specified in that method
Example:
Public Class Class1
Public Function A(Optional ByVal b As String = "")
Return "a"
End Function
End Class
here i am inheriting like
class Class2:Class1
{
}
Then u need pass parameter of type string,but here its not compulsary.