Hi Phil, all good points, but the points, but the thing I seem to be
missing in my understanding is why they were implemented to not allow
overriding.
John
On Mar 9, 2006, at 1:32 PM, Phil M wrote:
So, um, I still feel like I'm missing something with computed
properties. They seem like they offer the convenience of methods
without their power, instead being constrained by the limitations
inherent with properties, i.e., no child class re-implementation
allowed.
You can just implement the Get to make the property Read-Only.
You can use computed properties to access specific data within
another data structure such as a Dictionary or MemoryBlock; where
this structure is the holds all of the data but you don't want to
expose it outside of the class. Another example is using Computed
Properties to get and set properties for Controls inside a
ContainerControl, like the caption of a PushButton.
Third, computed properties have the advantage of showing their
values in the debugger but methods will not.
_______________________________________________
Unsubscribe or switch delivery mode:
<http://www.realsoftware.com/support/listmanager/>
Search the archives of this list here:
<http://support.realsoftware.com/listarchives/lists.html>