Re: XML-kommentierung erweitern
- From: "Herfried K. Wagner [MVP]" <hirf-spam-me-here@xxxxxx>
- Date: Wed, 24 Sep 2008 21:27:32 +0200
Hallo Frank!
"Frank Dzaebel" <Post@xxxxxxxxxxxxxx> schrieb:
Aber soweit ich den OP verstehe, möchte er,
daß nach Eingabe von '///' vor einer Klasse folgender Code eingefügt wird: ... <author>
Falls das der eigentliche Wunsch wäre
wäre das zunächst gegen die C# Spezifikation.
Die ist festgeschrieben.
XML-Kommentare sind nicht Teil der normativen Sprachspezifikation von C#, sondern sie werden im nicht-normativen "Annex E. Documentation Comments" beschrieben.
Zitate aus "Standard ECMA-334: C# Language Specification", 4th edition (June 2006), <URL:http://www.ecma-international.org/publications/standards/Ecma-334.htm>:
S. 487:
| A conforming C# compiler is not required to check the syntax
| of documentation comments; such comments are simply ordinary
| comments. [...]
|
| This specification suggests a set of standard tags to be used in
| documentation comments.
S. 488:
| Although developers are free to create their own set of tags, a
| recommended set is defined in §E.2. [...]
|
| [...]
|
| The documentation generator must accept and process any tag that
| is valid according to the rules of XML. The following tags provide
| commonly used functionality in user documentation. (Of course,
| other tags are possible.)
Nein, das gehört IMHO wenn, dann eher
in die darunter liegende XML-Schnittstelle
(also nach der doc-xml-Erstellung).
Ich stimme soweit zu, als daß ich XML-Kommentare direkt im Quellcode für eine Unart halte, da sie den Quellcode aufblähen und dadurch die Wartbarkeit verringern (insbesondere dann, wenn mehrere Sprachen im Spiel sind). XML ist schließlich eher maschinenlesbarkeit optimiert und weniger auf Lesen/Schreiben durch den Menschen.
--
M S Herfried K. Wagner
M V P <URL:http://dotnet.mvps.org/>
V B <URL:http://dotnet.mvps.org/dotnet/faqs/>
.
- References:
- XML-kommentierung erweitern
- From: Frank Ruthardt
- Re: XML-kommentierung erweitern
- From: Frank Dzaebel
- Re: XML-kommentierung erweitern
- From: Herfried K. Wagner [MVP]
- Re: XML-kommentierung erweitern
- From: Frank Dzaebel
- Re: XML-kommentierung erweitern
- From: Herfried K. Wagner [MVP]
- Re: XML-kommentierung erweitern
- From: Frank Dzaebel
- XML-kommentierung erweitern
- Prev by Date: Re: XML-kommentierung erweitern
- Next by Date: Re: XML-kommentierung erweitern
- Previous by thread: Re: XML-kommentierung erweitern
- Next by thread: Re: XML-kommentierung erweitern
- Index(es):
Relevant Pages
|