Click here to Skip to main content
15,914,924 members
Home / Discussions / C#
   

C#

 
AnswerRe: Write binaryfile to table/dataset and then to XMLFile .... Pin
The Nightcoder27-May-08 16:01
The Nightcoder27-May-08 16:01 
GeneralRe: Write binaryfile to table/dataset and then to XMLFile .... Pin
MaWeRic27-May-08 22:24
MaWeRic27-May-08 22:24 
GeneralRe: Write binaryfile to table/dataset and then to XMLFile .... Pin
The Nightcoder28-May-08 2:12
The Nightcoder28-May-08 2:12 
QuestionShould I implement IDisposable? Pin
DaveyM6926-May-08 7:28
professionalDaveyM6926-May-08 7:28 
AnswerRe: Should I implement IDisposable? Pin
N a v a n e e t h26-May-08 7:32
N a v a n e e t h26-May-08 7:32 
GeneralRe: Should I implement IDisposable? Pin
Scott Dorman26-May-08 7:48
professionalScott Dorman26-May-08 7:48 
GeneralRe: Should I implement IDisposable? Pin
N a v a n e e t h26-May-08 16:47
N a v a n e e t h26-May-08 16:47 
AnswerRe: Should I implement IDisposable? Pin
Scott Dorman26-May-08 7:47
professionalScott Dorman26-May-08 7:47 
The short and simple answer is: "Probably, yes." However, you haven't really provided a lot of details.

A couple of questions to think about:

1. Do any of the objects that will be contained in the collections implement IDisposable?
2. How large are the objects that will be contained in the collections?

If any of the collection items implement IDisposable, then yes, you definately should implement IDisposable so your collection can call Dispose on the items.

If your items are large (greater than about 85,000 bytes) you should probably still implement IDisposable, but definately make sure you set the items to null.

You can take a look at this article[^] for more information on IDisposable in general.

Scott.

—In just two days, tomorrow will be yesterday.
—Hey, hey, hey. Don't be mean. We don't have to be mean because, remember, no matter where you go, there you are. - Buckaroo Banzai

[Forum Guidelines] [Articles] [Blog]

GeneralRe: Should I implement IDisposable? Pin
DaveyM6926-May-08 7:59
professionalDaveyM6926-May-08 7:59 
GeneralRe: Should I implement IDisposable? Pin
Guffa26-May-08 11:37
Guffa26-May-08 11:37 
GeneralRe: Should I implement IDisposable? Pin
Scott Dorman26-May-08 15:00
professionalScott Dorman26-May-08 15:00 
GeneralRe: Should I implement IDisposable? Pin
S. Senthil Kumar26-May-08 20:57
S. Senthil Kumar26-May-08 20:57 
GeneralRe: Should I implement IDisposable? Pin
Scott Dorman27-May-08 1:28
professionalScott Dorman27-May-08 1:28 
GeneralRe: Should I implement IDisposable? Pin
Guffa26-May-08 21:30
Guffa26-May-08 21:30 
GeneralRe: Should I implement IDisposable? Pin
Scott Dorman27-May-08 1:24
professionalScott Dorman27-May-08 1:24 
GeneralRe: Should I implement IDisposable? Pin
Guffa27-May-08 2:21
Guffa27-May-08 2:21 
GeneralRe: Should I implement IDisposable? Pin
DaveyM6927-May-08 11:53
professionalDaveyM6927-May-08 11:53 
GeneralRe: Should I implement IDisposable? Pin
Scott Dorman27-May-08 16:14
professionalScott Dorman27-May-08 16:14 
GeneralRe: Should I implement IDisposable? Pin
DaveyM6928-May-08 1:19
professionalDaveyM6928-May-08 1:19 
GeneralRe: Should I implement IDisposable? Pin
Scott Dorman27-May-08 16:03
professionalScott Dorman27-May-08 16:03 
GeneralRe: Should I implement IDisposable? Pin
Guffa27-May-08 21:19
Guffa27-May-08 21:19 
AnswerRe: Should I implement IDisposable? Pin
Guffa26-May-08 11:29
Guffa26-May-08 11:29 
GeneralRe: Should I implement IDisposable? Pin
DaveyM6927-May-08 1:19
professionalDaveyM6927-May-08 1:19 
QuestionPinned form Pin
netJP12L26-May-08 6:25
netJP12L26-May-08 6:25 
AnswerRe: Pinned form Pin
DaveyM6926-May-08 7:19
professionalDaveyM6926-May-08 7:19 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.