vb equivalent

  • Thread starter Thread starter rodchar
  • Start date Start date
R

rodchar

hey all,
in vb you have overloads
Public Overloads Sub

how would you say that in csharp?

thanks,
rodchar
 
You don't need to say it in C#, you just make another method that has the
same name as an existing one but has a different signature.

int Foo()
{

}

int Foo(string)
{

}

-Scott
 
what about the following:
public new void myfunction()

i don't think i've seen a "new" in a function declaration?
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Similar Threads


Back
Top