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 access modifiers used for?
What is difference between static and readonly in c#?
Why do we need encapsulation in c#?
Suppose you have already existing application with Visual Studio 6 (VB 6, InterDev 6) and this application utilizes Windows 2000 COM+ transaction services. With this example how can you approach migrating this application to .NET?
Where is the keyword void used?
So what makes your code really object-oriented #?
What is difference between class and abstract class in c#?
What type of data type conversion happens when the compiler encounters the following code?
Which sorting algorithm is best?
Explain briefly the difference between value type and reference type?
What is static class in C#?
how to sort an array in c#
Explane each and every methods of nterface Queue? Explain About performance issues on retrieving records
What is a variable in c#?
Explain the steps to create satellite assembly?