Click here to Skip to main content
15,903,201 members
Home / Discussions / C#
   

C#

 
AnswerRe: How to dispose a class Pin
Pete O'Hanlon8-Jan-07 0:30
mvePete O'Hanlon8-Jan-07 0:30 
GeneralRe: How to dispose a class Pin
Yustme8-Jan-07 0:48
Yustme8-Jan-07 0:48 
GeneralRe: How to dispose a class Pin
Guffa8-Jan-07 1:00
Guffa8-Jan-07 1:00 
GeneralRe: How to dispose a class Pin
Yustme8-Jan-07 1:03
Yustme8-Jan-07 1:03 
GeneralRe: How to dispose a class Pin
Scott Dorman8-Jan-07 17:12
professionalScott Dorman8-Jan-07 17:12 
GeneralRe: How to dispose a class Pin
Not Active8-Jan-07 2:36
mentorNot Active8-Jan-07 2:36 
GeneralRe: How to dispose a class Pin
Mircea Puiu8-Jan-07 3:39
Mircea Puiu8-Jan-07 3:39 
AnswerRe: How to dispose a class Pin
Guffa8-Jan-07 4:10
Guffa8-Jan-07 4:10 
Mark Nischalke wrote:
Having a Dispose method isn't enough by itself. Your class must implment IDisposable.


Well, "must" is not really true. Adding the IDisposable interface to the list of implemented interfaces for the class doesn't really make any difference. It doesn't change the implementation of the class in any way. Using the Dispose method works just fine without the interface, only you can't use the class in a using block as that requires the IDisposable interface.

It's just that the IDisposable interface is intended for this, so if you want to add disposability to a class in a well behaved way, you should implement the IDisposable interface.

Just to be clear. Smile | :)

---
Year happy = new Year(2007);

GeneralRe: How to dispose a class Pin
Not Active8-Jan-07 4:15
mentorNot Active8-Jan-07 4:15 
GeneralRe: How to dispose a class Pin
Pete O'Hanlon9-Jan-07 3:33
mvePete O'Hanlon9-Jan-07 3:33 
GeneralRe: How to dispose a class Pin
Scott Dorman8-Jan-07 17:16
professionalScott Dorman8-Jan-07 17:16 
QuestionRowSource or Datasource in ComboBox Pin
phantanagu7-Jan-07 22:39
phantanagu7-Jan-07 22:39 
AnswerRe: RowSource or Datasource in ComboBox Pin
rizgar8-Jan-07 1:54
rizgar8-Jan-07 1:54 
QuestionHelp needed for Displaying Notification Icon Pin
Exelioindia7-Jan-07 22:37
Exelioindia7-Jan-07 22:37 
AnswerRe: Help needed for Displaying Notification Icon Pin
testy_proconsul7-Jan-07 23:18
testy_proconsul7-Jan-07 23:18 
GeneralRe: Help needed for Displaying Notification Icon Pin
Cormac M Redmond8-Jan-07 1:12
Cormac M Redmond8-Jan-07 1:12 
GeneralRe: Help needed for Displaying Notification Icon Pin
Exelioindia8-Jan-07 17:23
Exelioindia8-Jan-07 17:23 
AnswerRe: Help needed for Displaying Notification Icon Pin
Ravi Bhavnani8-Jan-07 2:50
professionalRavi Bhavnani8-Jan-07 2:50 
QuestionMultithreading Pin
indiaone7-Jan-07 21:21
indiaone7-Jan-07 21:21 
AnswerRe: Multithreading [modified] Pin
Shajeel7-Jan-07 21:55
Shajeel7-Jan-07 21:55 
GeneralRe: Multithreading Pin
indiaone7-Jan-07 23:04
indiaone7-Jan-07 23:04 
GeneralRe: Multithreading Pin
Shajeel7-Jan-07 23:07
Shajeel7-Jan-07 23:07 
GeneralRe: Multithreading Pin
indiaone7-Jan-07 23:31
indiaone7-Jan-07 23:31 
GeneralRe: Multithreading Pin
Shajeel7-Jan-07 23:45
Shajeel7-Jan-07 23:45 
GeneralRe: Multithreading Pin
indiaone7-Jan-07 23:57
indiaone7-Jan-07 23:57 

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.