what is a destructor?
Answer / Radheshyam Pathak
In C#, a destructor is a member that provides termination services for an object. It has the same name as the class prefixed with a tilde (~). Unlike constructors, destructors are not called explicitly. Instead, they are invoked automatically by the CLR when the garbage collector reclaims memory occupied by the object.
| Is This Answer Correct ? | 0 Yes | 0 No |
What is console write in c#?
Why we use get set property in c#?
What is called method in c#?
Is double a decimal?
Why ref is used in c#?
Can we return two values from a function?
What is token in c#?
What is lock in c#?
What is dbml file in c#?
What are the benefits of using windows services:
how encapsulation is implemented in c#
Why do we use namespace 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)