Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Inherited property does not set to itself
Message
From
22/01/2005 10:01:49
 
 
To
21/01/2005 20:11:51
General information
Forum:
ASP.NET
Category:
Class design
Miscellaneous
Thread ID:
00979501
Message ID:
00979578
Views:
21
Michel,

I don't know much about "shadowing", as it seems to be a VB construct, but my guess is that you're not using it correctly. I've read about shadowing in the Help, so that's all I know about it. From your description of what's going on, I still can't quite figure out what you're trying to do that is not working. Could you explain it further by posting the relevant code?

~~Bonnie



>To add more to this, the only time that I cannot see the new value I have set is from a method in the class. If I set the value in the derived class, I can see it in all those methods. But, calling a method from the class will make the setting I have done to dissappear and replaced by the default value of the property defined in the class level.
>
>In order to workaround this, I have to create a method in the class such as:
>
>
>    ' expC1 Table
>    Public Function SetLogin(ByVal tcTable As String) As String
>        cLogin = tcTable
>    End Function
>
>
>that I am calling from the derived class. Using this approach will make the class property to hold the new value even when I am calling a method of its own later on.
>
>But, this is kind primitive. I must be missing something. What is blocking the derived class to be able to set a value into that property which would also be visible in the class?
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