Normally you could use the EditorBrowsable attribute to hide a class or class member but enumeration values aren't either of these. I'm not aware of any mechanism to hide enumeration values though. Intellisense only looks for this attribute on types and type members.
The only real workaround is to not define the enumerated values but rather rely on the fact that an enumeration is just an integer so you can define (through constants in a class or something) special values that are not part of the enumeration but can still be assigned to it. However this is generally not a good approach especially if your clients are careful because they will probably assume that any enumerated value not in the enumeration list is an error.
Michael Taylor - 10/11/06
|