serviced component question

R

Robert Jordan

i have a vb.net class that Implements IDisposable.
now i want to make that class services, so i make it inherits
servicedComponent.
now i get this error message:
sub 'Dispose' shadows an overridable method in a base class. To override the
base method, this method must be declared 'Overrides'.

now that's OK, i can declare the sub as overrides, but should i take
anything else into consideration?
like calling the base.dispose inside my function.
must I?

Yes.

Rob
 
Z

z f

i have a vb.net class that Implements IDisposable.
now i want to make that class services, so i make it inherits
servicedComponent.
now i get this error message:
sub 'Dispose' shadows an overridable method in a base class. To override the
base method, this method must be declared 'Overrides'.

now that's OK, i can declare the sub as overrides, but should i take
anything else into consideration?
like calling the base.dispose inside my function.
must I?

TIA.
 

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

Top