473,406 Members | 2,698 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,406 software developers and data experts.

Comment Inheritance

Hi All,

This may be a silly question, but:
Is it possible for a child class to inherit a base classes <summary>
tag info for an overridden method?

Cheers,

T

Apr 24 '06 #1
10 2838
No. I also asked this question some time ago! It is very frustrating to have
to duplicate comments for derived classes, and also subsequently keep them
in synch. I would like to see comment inheritance in a future version of C#.

--
======================
Clive Dixon
Digita Ltd. (www.digita.com)
<Tr***********@gmail.com> wrote in message
news:11**********************@i39g2000cwa.googlegr oups.com...
Hi All,

This may be a silly question, but:
Is it possible for a child class to inherit a base classes <summary>
tag info for an overridden method?

Cheers,

T

Apr 24 '06 #2
Thanks Clive,
I was questioning my sanity when I couldn't work it out. It seems like
such an obvious thing to need!
T

Apr 24 '06 #3
On 24 Apr 2006 01:32:27 -0700, Tr***********@gmail.com wrote:
This may be a silly question, but:
Is it possible for a child class to inherit a base classes <summary>
tag info for an overridden method?


C# and Visual Studio don't allow that at all. However, the upcoming
NDoc 2.0 will allow comment inheritance.

But that's going to be an NDoc-only feature so you're not going to see
the inherited comment in IntelliSense -- which is why I'm not planning
to use that feature.
--
http://www.kynosarges.de
Apr 24 '06 #4
I did put in a request for this feature with the NDoc guys - glad to hear
it's actually happening. Would be nice to see this ability in the C#
compiler too...

--
======================
Clive Dixon
Digita Ltd. (www.digita.com)
"Christoph Nahr" <ch************@kynosarges.de> wrote in message
news:aq********************************@4ax.com...
On 24 Apr 2006 01:32:27 -0700, Tr***********@gmail.com wrote:
This may be a silly question, but:
Is it possible for a child class to inherit a base classes <summary>
tag info for an overridden method?


C# and Visual Studio don't allow that at all. However, the upcoming
NDoc 2.0 will allow comment inheritance.

But that's going to be an NDoc-only feature so you're not going to see
the inherited comment in IntelliSense -- which is why I'm not planning
to use that feature.
--
http://www.kynosarges.de

Apr 24 '06 #5
There is also an item in Microsoft's product feedback center for this:

http://lab.msdn.microsoft.com/produc...e-2a5811c0d3d1

Please, go and at least vote for it, if not comment on it. I mentioned
it during last week's C# language chat and there was some mild interest
and they asked if I would put in a feedback item on it, but I found one
already there... so go vote!

Apr 24 '06 #6

"Christoph Nahr" wrote...
Tr***********@gmail.com wrote:
This may be a silly question, but:
Is it possible for a child class to inherit a base classes <summary>
tag info for an overridden method?


C# and Visual Studio don't allow that at all. However, the upcoming
NDoc 2.0 will allow comment inheritance.

But that's going to be an NDoc-only feature so you're not going to see
the inherited comment in IntelliSense -- which is why I'm not planning
to use that feature.


You can use GhostDoc, which "fills in" the summary from the overridden
method.

http://www.roland-weigelt.de/ghostdoc/

It's pretty useful for filling in other summaries as well.

// Bjorn A
Apr 24 '06 #7
Tr***********@gmail.com wrote:
Hi All,

This may be a silly question, but:
Is it possible for a child class to inherit a base classes <summary>
tag info for an overridden method?


Yes, use Ghostdoc.
http://www.roland-weigelt.de/ghostdoc/

:)

Frans

--
------------------------------------------------------------------------
Lead developer of LLBLGen Pro, the productive O/R mapper for .NET
LLBLGen Pro website: http://www.llblgen.com
My .NET blog: http://weblogs.asp.net/fbouma
Microsoft MVP (C#)
------------------------------------------------------------------------
Apr 25 '06 #8
Nice one, thanks.

Apr 25 '06 #9

"Frans Bouma [C# MVP]" <pe******************@xs4all.nl> wrote in message
news:xn***************@news.microsoft.com...
Tr***********@gmail.com wrote:
Hi All,

This may be a silly question, but:
Is it possible for a child class to inherit a base classes <summary>
tag info for an overridden method?


Yes, use Ghostdoc.
http://www.roland-weigelt.de/ghostdoc/

:)

Frans


It doesn't support VS Express

:(

Nick
Apr 26 '06 #10
On Wed, 26 Apr 2006 08:08:00 GMT, "Nick Hounsome"
<Ne**@NickHounsome.Me.Uk> wrote:
It doesn't support VS Express


The other way round... VS Express doesn't support plug-ins.
Any plug-ins. Microsoft very much wants you to buy Standard or higher
if you wish to use plug-ins...
--
http://www.kynosarges.de
Apr 26 '06 #11

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

Similar topics

10
by: jeffc | last post by:
When compiling the following program, I get an error on the line specified: The base class "B" cannot be initialized because it does not have a default constructor. If I remove the "virtual"...
5
by: Robert Spoons | last post by:
Can you look over this code, preferably try it, and comment? I believe the 'extend' function below will allow you to use full 'class inheritance' in javascript, but I would like to verify it. ...
14
by: Steve Jorgensen | last post by:
Recently, I tried and did a poor job explaining an idea I've had for handling a particular case of implementation inheritance that would be easy and obvious in a fully OOP language, but is not at...
29
by: MAHESH MANDHARE | last post by:
Hi , Can Anyone explain me exactly why multiple inheritance not used in java and c# thanks, Mahesh -- Have A Good Day, Mahesh, Maheshmandhare@yahoo.co.in
3
by: Chris Kennedy | last post by:
What's the difference between importing a namespaces and inheriting.
60
by: Shawnk | last post by:
Some Sr. colleges and I have had an on going discussion relative to when and if C# will ever support 'true' multiple inheritance. Relevant to this, I wanted to query the C# community (the...
6
by: burningodzilla | last post by:
Hi all - I'm preparing to dive in to more complex application development using javascript, and among other things, I'm having a hard time wrapping my head around an issues regarding "inheritance"...
3
by: Jam | last post by:
Hello All, Your comment is needed on following subject,i define the Class and Inheritance as following,what do you think? Class: Class is a set of objects which shares common states and...
14
by: karthikbalaguru | last post by:
Hi, What could be the maximum Accepted Layers/Levels of inheritance in a normal C++ program that has private(data),protected(data) and public(data,member functions) ? On what does this depend...
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: 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...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
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,...
0
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new...

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.