Re: Pattern: Static Properties Return Objects
Per Bolmstedt <[email protected]> Wed, 30 Jan 2008 06:32:52 -0500
| Newsgroups | gmane.comp.windows.devel.dotnet.clr |
|---|---|
| Message-ID | <LISTSERV%[email protected]> |
Eh, thanks for the vote of confidence. The reason I asked was that the below was the only reference I could find. I think the article sums it up nicely, but it kind of looks as though the author invented the pattern names themselves... =] On Wed, 30 Jan 2008 12:27:38 +0100, Daniel Petersson <[email protected]> wrote: >A quick google gave a ref to Codeplex: http://www.devx.com/enterprise/Article/28246/0/page/3 >--Daniel > >________________________________________ >From: Discussion of development on the .NET platform using any managed language [[email protected]] On Behalf Of Per Bolmstedt [[email protected]] >Sent: Wednesday, January 30, 2008 12:03 PM >To: [email protected] >Subject: Re: [DOTNET-CLR] Pattern: Static Properties Return Objects > >Where is that name used? Java? It sounds like something that would have been >used before Java had enums, as a progression of the "int enum pattern"... > >On Wed, 30 Jan 2008 12:02:07 +0100, Daniel Petersson ><[email protected]> wrote: > >>If you mean something like an extended version behavior implemented by >Color.Red this is sometimes refered to as the "descriptor pattern". >> >>regards, >> Daniel >> >>________________________________________ >>From: Discussion of development on the .NET platform using any managed > language [[email protected]] On Behalf Of Brady Kelly >[[email protected]] >>Sent: Wednesday, January 30, 2008 11:52 AM >>To: [email protected] >>Subject: [DOTNET-CLR] Pattern: Static Properties Return Objects >> >>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 >> >>=================================== >>This list is hosted by DevelopMentor® http://www.develop.com >> >>View archives and manage your subscription(s) at http://discuss.develop.com >=================================== >This list is hosted by DevelopMentor® http://www.develop.com > >View archives and manage your subscription(s) at http://discuss.develop.com > >=================================== >This list is hosted by DevelopMentor® http://www.develop.com > >View archives and manage your subscription(s) at http://discuss.develop.com =================================== This list is hosted by DevelopMentor® http://www.develop.com View archives and manage your subscription(s) at http://discuss.develop.com