Re: design question : struct or class
As Jon has stated, objects, by default, are passed by value. Structures
have the overhead of value semantics, as I see it, just like C++
classes,
but without the benefit of C++'s deterministic destructors. Thus the
limited usefullness of structures in C#.
Regards,
Jeff
*** Sent via Developersdex http://www.developersdex.com ***
Don't just participate in USENET...get rewarded for it!
As Jon has stated, objects, by default, are passed by value. Structures
have the overhead of value semantics, as I see it, just like C++
classes,
but without the benefit of C++'s deterministic destructors. Thus the
limited usefullness of structures in C#.
Regards,
Jeff
*** Sent via Developersdex http://www.developersdex.com ***
Don't just participate in USENET...get rewarded for it!
Comment