What is Dispose method in .NET?
Answers were Sorted based on User's Feedback
The GC call the Finalize () function automatically to
destroy the object called implicit destroy. When you want
to destroy a objects that you think no longer need and free
it from memory, then we will use the dispose function. For
better
Performance we will use the dispose function explicitly.
The Dispose method in .NET belongs to IDisposable interface
and it is best used to release unmanaged objects like File
objects, Windows API objects, Database connection objects,
COM objects etc from the memory. Its performance is better
than the finalize() method.
Is This Answer Correct ? | 9 Yes | 0 No |
Answer / bhasker
The Dispose method may be called on any instance of any type implementing the IDisposable interface. This is supported by the C# using statement which makes calling Dispose automatically easy.
Is This Answer Correct ? | 0 Yes | 0 No |
Define Final Class in C#
how to stored and retrive video in Sql server using asp.net c#......?
0 Answers Sans Pareil IT Services,
Can you access a hidden base class method in the derived class?
What is piller of OOPS in C#.
What is a dictionary in c#?
Is datetime nullable c#?
int a = '3' + '4'; char n = (char)a; What will be answer of n?
the c# keyword .int. Maps to which .net type?
Are tuples mutable c#?
What is string method in c#?
What is different between Implicit conversion and Explicit conversion in C#?
Is array passed by reference in c#?