Dear all,
Can someone tell me if it is possible to alter the visibility of the methods in an object (public/private) according to the state of the object? Or do I just have to put code to handle this in each method?
eg: When the connect method is called in my object I would like to add extra functionality, but remove it once the disconnect method is called. This would make sense to me, but maybe not to anyone else. The only problem I could see is how an editor would understand how the rules apply at design time.
With thanks,
Jason.
Can someone tell me if it is possible to alter the visibility of the methods in an object (public/private) according to the state of the object? Or do I just have to put code to handle this in each method?
eg: When the connect method is called in my object I would like to add extra functionality, but remove it once the disconnect method is called. This would make sense to me, but maybe not to anyone else. The only problem I could see is how an editor would understand how the rules apply at design time.
With thanks,
Jason.