I would like to create an enumeration that exposes a set of values that
allow a client to select from a list a formatting options.

For example:

DateRange scheduleEventsDateRange = new DateRange(args[0], args[1],
DateTimeFormats.MM/dd/yyyy HH:mm:ss <== client to select value from enum.

I thought that it might be possible to use Unicode encoding to specify the
characters that I would like displayed by Intellisense when the component
is coded against. However, there are a couple of problematic characters
when trying to generate an identifier in the form  - MM/dd/yyyy HH:mm:ss
The backslash and I assume the whitespace.

There appears to be an issue with the using a backslashes' Unicode
representation as \u047.

For example:

public enum DateTimeFormats
{
    \MM\u047dd\u047yyyy    // and so on
}

Question1: Is there a way to make this work using an enum?
Question2: Is there a better way to acheive the same result with another
object or structure?

===================================
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