Overloads in vb.net 2.0

  • Thread starter Thread starter moondaddy
  • Start date Start date
M

moondaddy

Is it OK to overload a sub in a module (vs a class) in vb.net 2.0? I get a
green squiggly under the overloads key word saying
"Inappropriate use of 'Overloads' key word in a module." However, it
compiles.

Any advise here?
 
moondaddy said:
Is it OK to overload a sub in a module (vs a class) in vb.net 2.0?

Yes, it is.
I get a green squiggly under the overloads key word saying
"Inappropriate use of 'Overloads' key word in a module." However, it
compiles.

'Overloads' is not always required. In some cases, such as in modules,
overloading works without specifying the 'Overloads' keyword.
 
Thanks.

--
(e-mail address removed)
Herfried K. Wagner said:
Yes, it is.


'Overloads' is not always required. In some cases, such as in modules,
overloading works without specifying the 'Overloads' keyword.
 
Back
Top