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 |
What is Delegate and what is it used for ?
What are expressions c#?
What is sqlcommandbuilder c#?
What are the ways to deploy an assembly?
What is difference between Method and function
What is difference between array and arraylist in c#?
What are properties in C#?
What is lazy class in c#?
Can I define a type that is an alias of another type (like typedef in c++)?
How many root nodes are there in an xml document?
What is thread in c#?
What is the use of the dispose method 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)