Why use a Struct instead of a Class.

0 views
Skip to first unread message

Paul Aspinall

unread,
Mar 27, 2006, 4:33:18 PM3/27/06
to
Hi
I've used both Struct and Classes. However, after reading a few articles
lately, I'm starting to wonder why you would really use a Struct over a
class.

The only reason seems to be that Structs are Valuetypes, and can perform
better with smaller data types (ie < 16 bytes). But in the kind of apps I
write, this is very rarely a consideration, and therefore I prefer to use
classes all the time.

Am I alone in this??

Thanks


Paul


Bruce Wood

unread,
Mar 27, 2006, 7:13:12 PM3/27/06
to
Reply all
Reply to author
Forward
0 new messages