Dynamically instance a class
- From: APA <buddy__a@xxxxxxxxxxx>
- Date: Wed, 20 Sep 2006 15:53:30 -0500
I have a setting in my database where the user specifies a tax configuration (e.g. "UK/EU") and I have several tax classes that handle these different configurations. So what is the best way to instance the proper class based on what is in this configuration parameter. I could use a simple switch statement but it seems like there should be a better way.
.
- Follow-Ups:
- Re: Dynamically instance a class
- From: Carl Daniel [VC++ MVP]
- Re: Dynamically instance a class
- From: Mattias Sjögren
- Re: Dynamically instance a class
- Prev by Date: Re: Async UI Calls Block on Dual-Core CPU, work fine on Single Core. Why?
- Next by Date: Re: Socket weirdness
- Previous by thread: Re: .NET Framework 2.0
- Next by thread: Re: Dynamically instance a class
- Index(es):