Pattern: Static Properties Return Objects
Brady Kelly <[email protected]> Wed, 30 Jan 2008 12:52:23 +0200
| Newsgroups | gmane.comp.windows.devel.dotnet.clr |
|---|---|
| Message-ID | <[email protected]> |
I often have a situation where my info needs progress beyond a simple enum. I then create a class, with a private constructor that takes an enum, and returns an object representing one of the enum items, but with more data. I expose static getters to construct and return each type of object, so that using the class appears as if using an enum. Is there a name for this pattern or practice? =================================== This list is hosted by DevelopMentorĀ® http://www.develop.com View archives and manage your subscription(s) at http://discuss.develop.com