It works here (v1.1). Perhaps you neglected to set the XmlDocumentFile
value in the project properties before building the assembly where the
enum is declared?

Keep Smilin'
Ed Stegman


-----Original Message-----
From: Moderated discussion of advanced .NET topics.
[mailto:[EMAIL PROTECTED] Behalf Of Bill Bassler
Sent: Thursday, October 23, 2003 6:39 AM
To: [EMAIL PROTECTED]
Subject: Re: How to create an enumeration that exposes formats


I assumed I couldn't do what I wanted as far as available characters
for
identifiers.  Thanks for confirming it.

Regarding ...
If the goal is simply to get the text of your choosing to appear in
IntelliSense, wouldn't it make more sense to use the XML documentation
to do this?  E.g.

public enum DateTimeFormats
{
  /// <summary>MM/dd/yyyy HH:mm:ss</summary>
  MonthDayYearTime,

  ... etc.
}

Unless I'm missing something ... it appears that <summary> doesn't pop
a
ToolTip in the VS.Net IDE for when used as above. It simply displays
the
type specifier as usual if you mouse over the enum type. Of course
when you
enter a "." after the enum type name you also get a list of the named
constants.

The <summary> tag certainly works in the manner you describe for
classes
and methods.

===================================
This list is hosted by DevelopMentor�  http://www.develop.com
NEW! ASP.NET courses you may be interested in:

2 Days of ASP.NET, 29 Sept 2003, in Redmond
http://www.develop.com/courses/2daspdotnet

Guerrilla ASP.NET, 13 Oct 2003, in Boston
http://www.develop.com/courses/gaspdotnet

View archives and manage your subscription(s) at
http://discuss.develop.com

===================================
This list is hosted by DevelopMentor�  http://www.develop.com
NEW! ASP.NET courses you may be interested in:

2 Days of ASP.NET, 29 Sept 2003, in Redmond
http://www.develop.com/courses/2daspdotnet

Guerrilla ASP.NET, 13 Oct 2003, in Boston
http://www.develop.com/courses/gaspdotnet

View archives and manage your subscription(s) at http://discuss.develop.com

Reply via email to