473,387 Members | 1,495 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,387 software developers and data experts.

How to find ancestor class method definition in Visual Studio

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
Nov 16 '05 #1
3 2470
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" <ja********@shaw.ca> wrote in message
news:%2******************@TK2MSFTNGP09.phx.gbl...
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

Nov 16 '05 #2
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/<Om**************@TK2MSFTNGP15.phx.gbl>

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" <ja********@shaw.ca> wrote in message
news:%2******************@TK2MSFTNGP09.phx.gbl...
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]
Nov 16 '05 #3
C# gets better and better.

"Richard Blewett [DevelopMentor]" <ri******@develop.com> wrote in message
news:%2****************@TK2MSFTNGP10.phx.gbl...
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/<Om**************@TK2MSFTNGP15.phx.gbl>

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" <ja********@shaw.ca> wrote in message
news:%2******************@TK2MSFTNGP09.phx.gbl...
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]

Nov 16 '05 #4

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

4
by: Wayne Wengert | last post by:
I am trying to work through an ASP.NET book and in one example you build a Class and then call a method from that class in an ASPX page. I put the class file ("quote.dll") in the bin directory and...
4
by: Wayne Wengert | last post by:
I am trying to work through an ASP.NET book and in one example you build a Class and then call a method from that class in an ASPX page. I put the class file ("quote.dll") in the bin directory and...
5
by: jm.suresh | last post by:
Hi I have three objects, all of them are instances of classes derived from a base class. Now, given one of the instance, I want to find the closest relative of the other two. How can I do this? ...
2
by: Olumide | last post by:
Hello, I've got this nice inner class that I'm holds a set of "FrontPoint" objects as shown below. Unfortunately, the find and insert methods trigger massive C2784 errors. Would someone please...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: aa123db | last post by:
Variable and constants Use var or let for variables and const fror constants. Var foo ='bar'; Let foo ='bar';const baz ='bar'; Functions function $name$ ($parameters$) { } ...
0
by: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.