How to find ancestor class method definition in Visual Studio

  • Thread starter Thread starter Jack Addington
  • Start date Start date
J

Jack Addington

Is there a quick and easy way in Visual Studio 2003 to get the method
declaration from the ancestor so I can override/extend it? I know that if I
am in another method or the constructor and type base. then the popup list
shows all the events/method/properties... I can cut and paste from the
ancestor code but there must be a better way.

thx
 
I think I found it... I wasn't declaring the method in the base class as
virtual. When I type public override I was given a list of all the classes
available to be overritten..
 
Btw: you only need to type "override". VS.NET 2003 will add the appropriate access modifier for you when you select the method you want to override.

Regards

Richard Blewett - DevelopMentor

http://staff.develop.com/richard/weblog

nntp://news.microsoft.com/microsoft.public.dotnet.languages.csharp/<[email protected]>

I think I found it... I wasn't declaring the method in the base class as
virtual. When I type public override I was given a list of all the classes
available to be overritten..


Jack Addington said:
Is there a quick and easy way in Visual Studio 2003 to get the method
declaration from the ancestor so I can override/extend it? I know that if
I am in another method or the constructor and type base. then the popup
list shows all the events/method/properties... I can cut and paste from
the ancestor code but there must be a better way.

thx



[microsoft.public.dotnet.languages.csharp]
 
C# gets better and better.

Richard Blewett said:
Btw: you only need to type "override". VS.NET 2003 will add the
appropriate access modifier for you when you select the method you want to
override.

Regards

Richard Blewett - DevelopMentor

http://staff.develop.com/richard/weblog


nntp://news.microsoft.com/microsoft.public.dotnet.languages.csharp/<[email protected]>

I think I found it... I wasn't declaring the method in the base class as
virtual. When I type public override I was given a list of all the classes
available to be overritten..


Jack Addington said:
Is there a quick and easy way in Visual Studio 2003 to get the method
declaration from the ancestor so I can override/extend it? I know that
if
I am in another method or the constructor and type base. then the popup
list shows all the events/method/properties... I can cut and paste from
the ancestor code but there must be a better way.

thx



[microsoft.public.dotnet.languages.csharp]
 
Back
Top