Click here to Skip to main content
15,922,155 members
Home / Discussions / C#
   

C#

 
AnswerRe: How can I type cast an string as an htmlTable ? Pin
MasudM5-Mar-04 1:31
MasudM5-Mar-04 1:31 
QuestionHow To convert Xml to Html Pin
Inam2-Mar-04 18:01
Inam2-Mar-04 18:01 
AnswerRe: How To convert Xml to Html Pin
Hojtha Karlsson2-Mar-04 22:15
Hojtha Karlsson2-Mar-04 22:15 
GeneralClickety Pin
Mazdak3-Mar-04 5:30
Mazdak3-Mar-04 5:30 
AnswerRe: How To convert Xml to Html Pin
Heath Stewart3-Mar-04 3:59
protectorHeath Stewart3-Mar-04 3:59 
GeneralAbout Dispose method Pin
Andres Coder2-Mar-04 17:29
Andres Coder2-Mar-04 17:29 
GeneralRe: About Dispose method Pin
Meysam Mahfouzi2-Mar-04 18:13
Meysam Mahfouzi2-Mar-04 18:13 
GeneralRe: About Dispose method Pin
Heath Stewart3-Mar-04 3:45
protectorHeath Stewart3-Mar-04 3:45 
IDisposable.Dispose (you must implement IDisposable for this to be used correctly) is best used to free native resources (since many classes in .NET use native HANDLEs). You can also use it to dispose child objects and set references to null.

This is not a destructor, though. In fact, many times when the Dispose method cleans-up the resources, it will tell the GC to not call the destructor since there's nothing left to do (be sure you clean-up all resources before doing so, though):
public void Dispose()
{
  // Clean up native resources and any managed resource you might have.
  GC.SuppressFinalize(this);
}
For a more thorough example, see the documentation for the GC.SuppressFinalize method in the .NET Framework SDK.

 

Microsoft MVP, Visual C#
My Articles
GeneralRe: About Dispose method Pin
joan_fl3-Mar-04 5:21
joan_fl3-Mar-04 5:21 
QuestionHow to scroll between 2 Panels? Pin
jason_htun2-Mar-04 16:42
jason_htun2-Mar-04 16:42 
AnswerRe: How to scroll between 2 Panels? Pin
Matthew Hazlett2-Mar-04 16:49
Matthew Hazlett2-Mar-04 16:49 
GeneralRe: How to scroll between 2 Panels? Pin
jason_htun2-Mar-04 23:06
jason_htun2-Mar-04 23:06 
GeneralSearching PDF with C# Pin
Craig Suthers2-Mar-04 15:01
Craig Suthers2-Mar-04 15:01 
GeneralRe: Searching PDF with C# Pin
Matthew Hazlett2-Mar-04 16:17
Matthew Hazlett2-Mar-04 16:17 
GeneralRe: Searching PDF with C# Pin
Craig Suthers2-Mar-04 20:17
Craig Suthers2-Mar-04 20:17 
GeneralRe: Searching PDF with C# Pin
Heath Stewart3-Mar-04 3:40
protectorHeath Stewart3-Mar-04 3:40 
GeneralRe: Searching PDF with C# Pin
Philip Fitzsimons3-Mar-04 5:29
Philip Fitzsimons3-Mar-04 5:29 
QuestionHow marshall byte* ? Pin
Alexsander Antunes2-Mar-04 14:18
professionalAlexsander Antunes2-Mar-04 14:18 
AnswerRe: How marshall byte* ? Pin
Matthew Hazlett2-Mar-04 16:25
Matthew Hazlett2-Mar-04 16:25 
GeneralRe: How marshall byte* ? Pin
Alexsander Antunes3-Mar-04 0:59
professionalAlexsander Antunes3-Mar-04 0:59 
GeneralRe: How marshall byte* ? Pin
Matthew Hazlett3-Mar-04 3:18
Matthew Hazlett3-Mar-04 3:18 
GeneralRe: How marshall byte* ? Pin
Alexsander Antunes3-Mar-04 3:47
professionalAlexsander Antunes3-Mar-04 3:47 
QuestionDynamic Casting? Pin
Kelemvor2k2-Mar-04 13:07
sussKelemvor2k2-Mar-04 13:07 
AnswerRe: Dynamic Casting? Pin
I#3-Mar-04 1:49
I#3-Mar-04 1:49 
AnswerRe: Dynamic Casting? Pin
HAHAHA_NEXT3-Mar-04 4:19
HAHAHA_NEXT3-Mar-04 4: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.