|
-
Oct 21st, 2007, 03:19 AM
#1
Thread Starter
Hyperactive Member
[2005] Should I implement IDisposable?
Hi all
I am making a custom listview which inherits listview and handles all the owner drawing stuff using images, my listview has a three properties which are of type GraphicalRow, GraphicalRow is a structure which has a few images, a font and some other integers and such, along with a property wich is of type Graphical Header and is almost the same as above.
Now I have tried to find an awnser to this but im still not sure. The only custom types (Graphical Row, GraphicalHeader) in this class hold only generic types(is bitmap generic?) , so should I implement IDisposable or not?
And if I do, for generic types that dont have a dispose method, setting them to nothing is ok right?
eg. myinteger = nothing, or mybitmap = nothing.
or would just doing that to my UDT's be good enough, now I know I can get away without doing it at all but I want this to not get that one in a million error.
Thanks in advance
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
|