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's the difference between class and object?
What is default method in c#?
What is the best dependency injection c#?
What is the purpose of ienumerable in c#?
What is console readkey ()?
Is enum a value type c#?
What is default parameter in c#?
What are anonymous functions in c#?
What is difference between array and list?
What is a multicast c# delegate?
Define sealed classes in c#?
Which config file has all the supported channels/protocol?
Enlist some of the properties of a thread class?
What is array c#?
What is readline c#?