Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Overriding property set/get
Message
From
03/02/2004 12:33:19
 
 
To
03/02/2004 12:20:37
General information
Forum:
ASP.NET
Category:
Other
Miscellaneous
Thread ID:
00873482
Message ID:
00873487
Views:
16
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
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform