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 |
Why we use dll in c#?
Is system a class in c#?
What is difference between throw and throws in c#?
Is a valid int value?
What is difference between C# and VB.NET?
What is the difference between abstract class and interface in c#?
What is difference between sleep () and wait ()?
An abstract class is inherited, an Interface also inherited(multiple inheritance), How it differences.
What is the difference between interface and abstract class ?
What is the difference between iqueryable and ienumerable?
What is the use of oops in c#?
What is dynamic object in c#?
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)