Click here to Skip to main content
16,005,222 members
Home / Discussions / C#
   

C#

 
GeneralStreaming .wav file with CSound Pin
björka11-Aug-03 2:11
björka11-Aug-03 2:11 
Generalgantt chart Pin
Member 52474011-Aug-03 2:06
Member 52474011-Aug-03 2:06 
GeneralRe: gantt chart Pin
Heath Stewart11-Aug-03 2:23
protectorHeath Stewart11-Aug-03 2:23 
GeneralRe: gantt chart Pin
Member 52474011-Aug-03 2:45
Member 52474011-Aug-03 2:45 
GeneralRe: gantt chart Pin
Heath Stewart11-Aug-03 4:05
protectorHeath Stewart11-Aug-03 4:05 
Generaldestructor Vs Finalize Pin
devvvy11-Aug-03 1:45
devvvy11-Aug-03 1:45 
GeneralRe: destructor Vs Finalize Pin
Nish Nishant11-Aug-03 1:51
sitebuilderNish Nishant11-Aug-03 1:51 
GeneralRe: destructor Vs Finalize Pin
devvvy11-Aug-03 1:57
devvvy11-Aug-03 1:57 
Thanks, but why'd do we need destructor then? I mean, all the code in destructor will be transferred to Finalize() in IL anyway.

Also, when I tried to implement Finalize in my C# class, i got this CS0249 error, the compiler wont let me implement/declare Finalize?? Anyway, here is an extract from MSDN:


*************************************************************
QUOTE MSDN:
Do not override object.Finalize. Instead, provide a destructor.

Use destructor syntax to specify instructions to execute when your object is destroyed.

See Using C# and Managed C++ Destructor Syntax for more information.

The following sample generates CS0249:

// CS0249.cs
class C
{
protected override void Finalize() // CS0249
// try the following line instead
// ~C()
{
}

public static void Main()
{
}
}


norm
GeneralRe: destructor Vs Finalize Pin
Nish Nishant11-Aug-03 2:06
sitebuilderNish Nishant11-Aug-03 2:06 
GeneralWhat can you do in destructor with .NET? Pin
devvvy11-Aug-03 2:52
devvvy11-Aug-03 2:52 
GeneralRe: What can you do in destructor with .NET? Pin
James T. Johnson11-Aug-03 10:50
James T. Johnson11-Aug-03 10:50 
GeneralRe: What can you do in destructor with .NET? Pin
Nish Nishant11-Aug-03 15:58
sitebuilderNish Nishant11-Aug-03 15:58 
GeneralUsing a .lib in c# Pin
Big Trev11-Aug-03 1:32
Big Trev11-Aug-03 1:32 
GeneralRe: Using a .lib in c# Pin
Anthony_Yio11-Aug-03 1:56
Anthony_Yio11-Aug-03 1:56 
GeneralConverting Binary to Hex Pin
eggie511-Aug-03 0:26
eggie511-Aug-03 0:26 
GeneralRe: Converting Binary to Hex Pin
Meysam Mahfouzi11-Aug-03 1:16
Meysam Mahfouzi11-Aug-03 1:16 
GeneralRe: Converting Binary to Hex Pin
WillemM11-Aug-03 9:02
WillemM11-Aug-03 9:02 
QuestionWhat did I click in the treeview Pin
Nick Seng10-Aug-03 23:58
Nick Seng10-Aug-03 23:58 
AnswerRe: What did I click in the treeview Pin
OMalleyW11-Aug-03 1:59
OMalleyW11-Aug-03 1:59 
GeneralRe: What did I click in the treeview Pin
Heath Stewart11-Aug-03 2:20
protectorHeath Stewart11-Aug-03 2:20 
GeneralRe: What did I click in the treeview Pin
Nick Seng11-Aug-03 2:28
Nick Seng11-Aug-03 2:28 
GeneralRe: What did I click in the treeview Pin
Nick Seng11-Aug-03 2:27
Nick Seng11-Aug-03 2:27 
GeneralRe: What did I click in the treeview Pin
OMalleyW11-Aug-03 2:44
OMalleyW11-Aug-03 2:44 
GeneralRe: What did I click in the treeview Pin
Nick Seng11-Aug-03 2:46
Nick Seng11-Aug-03 2:46 
Questionweb service???? Pin
don7cry10-Aug-03 23:28
don7cry10-Aug-03 23:28 

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.