Collection of Enum with additional properties
From: Donal McWeeney (donal_mcweeney_at_NO-SP-AM.aimware.com)
Date: 04/29/04
- Next message: Stoitcho Goutsev \(100\) [C# MVP]: "Re: handling key events"
- Previous message: David Browne: "Re: JoinAll?"
- Next in thread: chornbe: "RE: Collection of Enum with additional properties"
- Reply: chornbe: "RE: Collection of Enum with additional properties"
- Messages sorted by: [ date ] [ thread ]
Date: Thu, 29 Apr 2004 15:16:05 +0100
Just thinking out loud here and looking for feedback in case I missed
something...
I was to track some additional properties around an enum I have - for
example a display name and a description. So I was thinking a building a
class EnumDescriptor to store these properties - and make it generic so that
it could be used for all enums.
I also need to be able to store and manage a collection of these
EnumDescriptor objects... for this I was thinking of building a custom
collection class (EnumDescriptorCollection) by inheriting from the the
NameObjectCollectionBase class.
Anybody know if I missed something in the .net framework that may do the
above for me?
Or if I missed anything in the logic...
Thanks
Donal
- Next message: Stoitcho Goutsev \(100\) [C# MVP]: "Re: handling key events"
- Previous message: David Browne: "Re: JoinAll?"
- Next in thread: chornbe: "RE: Collection of Enum with additional properties"
- Reply: chornbe: "RE: Collection of Enum with additional properties"
- Messages sorted by: [ date ] [ thread ]
Relevant Pages
|