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
There were a lot of questions asked, so I will list the topic (and add a what is "topic" and know pros/cons). Extreme programming, what is a transaction, various SDLC design approaches, what is a namespace, define a good test case, what is a stored proc, webservice? design patterns? linker? compiler? access modifiers? stack vs. queue? arrays vs. linked lists? sorting algorithms? recursion? OOP principles?
What is the base class in .net from which all the classes are derived from?
What is the use of getcommandlineargs() method in c#.net?
What does console writeline do?
Can we override interface method?
What is uint64_t?
What does out mean c#?
What is a statement c#?
What are the 3 logical operators?
What is single dimensional array in c#?
what happens if you inherit multiple interfaces and they have conflicting method names?
What is the symbol used for in c#?
How do I create a dbml file?
Who introduced c#?
How long does it take to learn c# programming?