Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Using classes of different types
Message
De
26/08/2005 13:36:19
 
 
À
26/08/2005 12:10:01
Information générale
Forum:
ASP.NET
Catégorie:
Code, syntaxe and commandes
Divers
Thread ID:
01044144
Message ID:
01044381
Vues:
13
You're welcome, Craig. Guess I'll be seeing you in a month!! =)

~~Bonnie



>Thanks, Bonnie...
>
>Exactly what I needed. Hope to see you at the Summit.
>
>
>
>>Hey Craig,
>>
>>Declare your worker class to be the base class, but instantiate it as the sub-class. Like this:
>>
>>    // Declaration
>>    private MyBaseClass worker;
>>
>>    // Instantiation
>>    this.worker = new MySubClass();
>>
>>
>>~~Bonnie
>>
>>
Bonnie Berent DeWitt
NET/C# MVP since 2003

http://geek-goddess-bonnie.blogspot.com
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform