The inheritance way seems to be more easy for me. The case statement in that 
type declaration looks like Chinese for me (just joking :)) Well, you showed 2 
methods and stated the pros and cons of those 2 methods. Thats really helpful. 
Now one can easily choose what they want from this. Great. Let me ask one 
question. In that code snippet you said to avoid using "ref" whenever not 
needed. What i understood is that using "ref" causes using heap memory. And you 
also said that it will affect the performance in a tight loop. Ok then, here is 
my question ; When we create GUI controls, is it safe to use "ref" rather than 
a normal object ?

Reply via email to