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
How do you determine whether a string represents a numeric value?
Can the nested class access, the containing class. Give an example?
What is the difference between serialization and deserialization in c#?
What are get and set in c#?
What is field in c#?
Explain the difference between a sub and a function in c#.
Does c# have primitives?
Why array is faster than arraylist in c#?
What is desktop application testing?
Does c# have a 'throws' clause?
What benefit do you get from using a primary interop assembly (pia)?
How jit (just in time) works?
How can I access the registry from c# code?
What is the difference between Decorator and Adapter pattern?
If I want to override a method one of class A and in class b then how do you declare?