Enumerations C# XML comments

  • Thread starter Thread starter Ryan Ternier
  • Start date Start date
R

Ryan Ternier

I've looked all over for help with this, but havn't found anything.

How do you write propper XML commenting for Enums? Each value inside the
Enumeration needs a Comment with it... yet I can't figure out how.

Any help would be great!

Thanks,


/RT
 
How do you write propper XML commenting for Enums? Each value inside the
Enumeration needs a Comment with it... yet I can't figure out how.

Is this what you're looking for?

public enum MyEnum
{
/// <summary>Abc</summary>
First,

/// <summary>Xyz</summary>
Second,

}



Mattias
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Back
Top