VB.NET vs C# OOP.

  • Thread starter Thread starter Mr. X.
  • Start date Start date
M

Mr. X.

Hello.
In VB.NET when I write a constructor, sometimes I call : MyBase. ...
or MyClass. ...

What is the equivalent in C#?
Does I have to call at the same way I used in VB.NET?

Thanks :)
 
In VB.NET when I write a constructor, sometimes I call : MyBase. ...
or MyClass. ...

In addition to Pete's reply, I'll mention that C# has no equivalent to VB's
MyClass keyword.
 
No 100% direct equivalent, true. But in the context of constructors (i.e.
the given question), C# provides an equivalent to calling
"MyClass.New(.)". The doc page for which I provided a link describes that
(among other things).

Ahhh, I didn't know that was one of the uses of MyClass.
 
Back
Top