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 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
Thanks Clive,
I was questioning my sanity when I couldn't work it out. It seems like
such an obvious thing to need!
T
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
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
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!
"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 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#)
------------------------------------------------------------------------
"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
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 This thread has been closed and replies have been disabled. Please start a new discussion. Similar topics
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"...
|
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.
...
|
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...
|
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
|
by: Chris Kennedy |
last post by:
What's the difference between importing a namespaces and inheriting.
|
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...
|
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"...
|
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...
|
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...
|
by: Charles Arthur |
last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
|
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
|
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...
|
by: nemocccc |
last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
|
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...
|
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...
|
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: 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...
|
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...
| |