VB.NET equivalent Syntax
Visual Basic
3
Posts
2
Posters
0
Views
1
Watching
-
when i'm using inheritance... how can i call the base class constructor from the derived class... in C# i can call it by using :base(...,...) what's the equivalent syntax in VB.NET... thax in advance
Use the
MyBase
keyword - the base constructor will be theNew
sub:Class MyClass
Inherits SomeOtherClassSub New() MyBase.New() ... End Sub
End Class
-
Use the
MyBase
keyword - the base constructor will be theNew
sub:Class MyClass
Inherits SomeOtherClassSub New() MyBase.New() ... End Sub
End Class