M
martin
just wondering....
Say i have a class with 3 nonstatic properties P1, P2 and P3. Now
somebody creates an instance of my class and calls any of them
(instance1.P2)
Is it possible to execute some other function say (checkIfLoaded)
before the property accessor is executed?
I realize i could do achieve this simply by embedding the call to
checkIfLoaded in the get{} accessor of each property
but i like to make things complicated. Any ideas?
Say i have a class with 3 nonstatic properties P1, P2 and P3. Now
somebody creates an instance of my class and calls any of them
(instance1.P2)
Is it possible to execute some other function say (checkIfLoaded)
before the property accessor is executed?
I realize i could do achieve this simply by embedding the call to
checkIfLoaded in the get{} accessor of each property
but i like to make things complicated. Any ideas?