Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Overriding property set/get
Message
De
03/02/2004 12:33:19
 
 
À
03/02/2004 12:20:37
Information générale
Forum:
ASP.NET
Catégorie:
Autre
Divers
Thread ID:
00873482
Message ID:
00873487
Vues:
17
BOb,

This is a good question ... I don't have the answer because I haven't actually tried to do this. Have you tried making the property virtual in the gened code and then try to override it in the sub-class? I have no idea if this will work, but that's the first thing I would try.

~~Bonnie



>Hi All,
>
>I was wondering if it was possible to override or extend the Get/Set methods in a property?
>
>What we do is Gen our business objects. I want to be able to subclass the gened code to write the business rules, etc. So, I can create methods, etc, no problem there. But, can I extend a set method of a property? If so, how?
>
>Thanks,
>BOb
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