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
What are object pooling and connection pooling and difference? Where do we set the Min and Max Pool size for connection pooling?
What is an example of a delegate?
What are the applications of c#?
What is the difference between read and readline in c#?
Define delay signing?
What is the meaning of console writeline in c#?
What is wpf application in c#?
What is a multi line comment?
Explain About .Net remoting
Why do we Need of static class in c#?
What is namespace in oop?
What is the difference between select and selectmany?
What is a void c#?
What is the use of console application in c#?
What is an assembly loader?