sure, but at least it is a beginning....

just to resume, what I actually have:

class PurchaseWithCreditCard
 has a CreditCard component
   which can be either a MasterCard, Diner, Visa, etc... (different
validation rules and workflow)

class PurchaseWithMoneyOrder
  has some other component (basically a null component)

class PurchaseWithPayPal...
 etc...

which I would actually prefer to be just a Purchase<T> where T :
IPaymentProvider (but how would I persist that???)

so, what I am thinking of right now, it might be a hack, but that's
what I came up with so far, is for

Purchase to have
   a BaseCreditCard (without CreditCardCompany, just the props)
   and a Type CreditCardCompantType

So would use these to get to a readonly GenericCreditCard<CreditCardCompanyType>

or is there a better way?

On Sun, Nov 23, 2008 at 2:44 PM, Fabio Maulo <[EMAIL PROTECTED]> wrote:
> 2008/11/23 Jan Limpens <[EMAIL PROTECTED]>
>>
>> Ah that's quite cool!
>
> But remember that you will have a System.Type, in your class, and not an
> instance of that type.
> --
> Fabio Maulo
>
> >
>



-- 
Jan
___________________
[EMAIL PROTECTED]
www.limpens.com
+55 (11) 3082-1087
+55 (11) 3097-8339

--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"nhusers" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/nhusers?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to