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 ?
- Re: Need help for a generic object field kcvinu
- Re: Need help for a generic object field juancarlospaco
- Re: Need help for a generic object field kcvinu
- Re: Need help for a generic object field GULPF
- Re: Need help for a generic object field Stefan_Salewski
- Re: Need help for a generic object f... miran
- Re: Need help for a generic obje... miran
- Re: Need help for a generic obje... mratsim
- Re: Need help for a generic obje... DTxplorer
- Re: Need help for a generic obje... kcvinu
- Re: Need help for a generic obje... kcvinu
- Re: Need help for a generic obje... DTxplorer
- Re: Need help for a generic obje... Stefan_Salewski
- Re: Need help for a generic obje... DTxplorer
- Re: Need help for a generic obje... mratsim
