inherting from CollectionBase

R

rodchar

hey all,
if i want to inherit from collectionbase is there any intellisense to know
what methods i need to implement?

thanks,
rodchar
 
P

Pavel Minaev

hey all,
if i want to inherit from collectionbase is there any intellisense to know
what methods i need to implement?

Sort of. When you type "override" within the class body and press
space, you will get a list of all overridable methods of the class.
Note that you don't actually _have_ to override any methods of
CollectionBase - it has default implementations for all its methods.
For a class with abstract methods, or an interface, you can also
position cursor on the class name in the base class declaration of
your class and press Shift+Alt+F10, then pick the "Implement ..." item
in the popup menu - it will create method stubs for all abstract
methods.
 
R

rodchar

thanks for the help,
rod.

Pavel Minaev said:
Sort of. When you type "override" within the class body and press
space, you will get a list of all overridable methods of the class.
Note that you don't actually _have_ to override any methods of
CollectionBase - it has default implementations for all its methods.
For a class with abstract methods, or an interface, you can also
position cursor on the class name in the base class declaration of
your class and press Shift+Alt+F10, then pick the "Implement ..." item
in the popup menu - it will create method stubs for all abstract
methods.
 

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