Can you declare a C++ type destructor in C# like ~MyClass() ?
Answer Posted / mr vinod kumar
Yes, but what's the point, since it will call Finalize(), and Finalize() has no guarantees when the memory will be cleaned up, plus, it introduces additional load on the garbage collector.
| Is This Answer Correct ? | 0 Yes | 0 No |
Post New Answer View All Answers
State the top.NET class that everything is derived from?
Why do we use interface in c#?
What is arraylist class in c#?
What is the importance of closing an ado.net application?
What is marshalling and what are different kinds of marshalling?
What is difference between constants and readonly in c#?
What is a di class?
What is the difference between gettype and typeof in c#?
list the steps in code compilation in c#?
Define MSIL, and how does it works? Why our developers need an appreciation of it if at all?
What issues can be faced while delivering code?
Can interface have virtual methods in c#?
What are delegate methods?
How can I make sure my c# classes will interoperate with other .net languages?
What are the different types of delegates?