-
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
Question asked by visitor Rohini
-
Junior Member
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.
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules