Can you declare a C++ type destructor in C# like ~MyClass() ?
Answer / 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 |
How do you implement multiple inheritance in .NET?
How?s method overriding different from overloading?
What is boolean method?
Can enum have methods c#?
What is the difference between double and decimal in c#?
Why is it a bad idea to throw your own exceptions?
What is difference between static and constant variable?
Types of polymerphism and explain about dynamic polymerphism?
What is an array of arrays called?
Can we change static value in c#?
What is difference between constants and readonly in c#?
What is the difference between Decorator and Adapter pattern?
Visual Basic (800)
C Sharp (3816)
ASP.NET (3180)
VB.NET (461)
COM+ (79)
ADO.NET (717)
IIS (369)
MTS (11)
Crystal Reports (81)
BizTalk (89)
Dot Net (2435)
Exchange Server (362)
SharePoint (720)
WCF (340)
MS Office Microsoft (6963)
LINQ Language-Integrated Query (317)
WPF (371)
TypeScript (144)
Microsoft Related AllOther (311)