473,395 Members | 1,941 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,395 software developers and data experts.

Using C# XML comments to document an Enumeration

I can't seem to figure out how to use C# XML comments to document the
members of an enumeration.

Here's an example of what I have so far:

/// <summary>

/// Specifies how ink is to be scaled in relation to its parent control.

/// </summary>

public enum InkScalingMode {None, InkToControl, ControlToInk};

The problem I'm having is that when I generate the documentation (using
NDoc) I get a table showing each of the possible values for the enum but the
descriptions of the values are blank. I expect them to be blank because I
haven't described them anywhere, but I can't seem to figure out what tags to
use to describe them.

Anyone know how to do this?

Thanks,

Rhy


Nov 16 '05 #1
1 14831
Figured it out:
/// <summary>

/// Specifies how ink is to be scaled in relation to its parent control.

/// </summary>

/// <value></value>

public enum InkScalingMode {

/// <summary>

/// Ink will not be scaled.

/// </summary>

None,

/// <summary>

/// Ink will be scaled to the control.

/// </summary>

InkToControl,

/// <summary>

/// Control will be scaled to the ink.

/// </summary>

ControlToInk

};
"Rhy Mednick" <rh*@rhy.com> wrote in message
news:eZ**************@tk2msftngp13.phx.gbl...
I can't seem to figure out how to use C# XML comments to document the
members of an enumeration.

Here's an example of what I have so far:

/// <summary>

/// Specifies how ink is to be scaled in relation to its parent
control.

/// </summary>

public enum InkScalingMode {None, InkToControl, ControlToInk};

The problem I'm having is that when I generate the documentation (using
NDoc) I get a table showing each of the possible values for the enum but
the descriptions of the values are blank. I expect them to be blank
because I haven't described them anywhere, but I can't seem to figure out
what tags to use to describe them.

Anyone know how to do this?

Thanks,

Rhy

Nov 16 '05 #2

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

Similar topics

0
by: thomas hygum | last post by:
Can php read comments embedded/included in picture files, fx. files of the formats PNG or JPG?
1
by: caldwellj | last post by:
Hello to anyone that can help, Basically, I am trying to design a page with 4 frames which are nested. A left frame and then a right frame with 3 frame rows. <frameset cols="20%,*"> <frame...
0
by: jon morgan | last post by:
Does anyone know how to achieve the equivalent of the following invalid enumeration definition: Public Enum Notes C-2 C#-2 D-2 D#-2 .....
1
by: Piyush Gupta | last post by:
Hi All, I am using following code snippet to add another user in Users.xml: ------------------------------------------------------------------- DataSet dstUsers = new DataSet();...
3
by: Thomas Seidel | last post by:
Hi NG, I would like to write a specific library that gets it data from a specific webpage. Because not all web sites are XHTML I guess I have to use the old com library MSHTML. Beacause it...
2
by: csharpers | last post by:
Hey, this is a very basic question for all you csharpers... I have created a class: public class Answer { public enum theAnswer { A, B, C } } I want to be able to do a toString as below...
0
by: BillHounslow | last post by:
hope someone can help me. Currently, I am printing four, multi-page Access 2003 Reports to MS Document Imaging, then manually combining them to form a single document for distribution. Can...
1
by: stran | last post by:
I'm trying to create a simple type that holds two different types. The first is IDREF and the second is an enumeration of string. When I generate a sample xml, I can enter any ID previously stated in...
1
by: deedeem | last post by:
Hi there, I am having trouble getting all my records to be placed into my WORD document from my ACCESS form. I have a form with a subform displayed and a control button that executes a macro. The...
7
by: chakriroxx | last post by:
hi all, i have a question related to document.execCommand(saveAs). i need to know the path of the file selected by the user in the saveAs dialog box. i need to make some changes to the saved...
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: 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
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: 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
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
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
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...

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.