C# Interview Questions and Answers
<< Previous Question Next Question >>
 Question: 1052 Page Views: 

How do you declare destructor in c#?



Posted By: Avi Date: 15 October 2010 08:23:46 AM
 Answer:

class T { ~T() { /*destructor code*/}}


Posted By: avibtech


Date: 15 October 2010 08:23:46 AM

by implementing finalize and dispose method


Posted By: kumar


Date: 2 August 2011 06:45:39 AM
Post a better Answer if you have
 
(Will show your Gravatar icon)  
  Country flag

Loading
Enter the text as shown in the image eCPaoP
Related Questions
C# : What is background worker and how do you use it?

What is background worker and how do you use it?

BackgroundWorker is class that allows to run long operations in background thread. The DoWork event ....
Category: C# Date: 10/14/2010 6:48:14 AM
C# : How do you use delegates(write code using Action delegate)?

How do you use delegates(write code using Action delegate)?

Action a = () => Console.WriteLine(“something”); a.Invoke();
Category: C# Date: 10/14/2010 6:45:31 AM
C# : Can as operator perform user defined conversion?

Can as operator perform user defined conversion?

No
Category: C# Date: 10/14/2010 6:43:14 AM
C# : What is var keyword?

What is var keyword?

Var means that variable is implicitly typed, it’s strongly typed but the compiler determines the typ....
Category: C# Date: 10/14/2010 5:22:31 AM
C# : How to initialize Dictionary<int, string> using collection initialize?

How to initialize Dictionary using collection initialize?

Dictionary<int, string> t = new Dictionary<int, string>() { {1, “a”}, {2, “vb”}, {3, “c”....
Category: C# Date: 10/14/2010 5:01:31 AM