|
-
May 31st, 2009, 10:39 PM
#7
Re: DataGridView Custom Properties
A structure may well be fine. If the type is small and simple then a structure will do just as well or maybe even better. The general rule is that if an object occupies more than 16 bytes then its type should be a class. Note that this means the object itself, not objects that it might refer to. If an object has a String field then that field occupies 4 bytes, no matter how long the string is. The object contains a reference to the string only.
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|