C# Corner
Tech
News
Videos
Forums
Jobs
Books
Events
More
Interviews
Live
Learn
Training
Career
Members
Blogs
Challenges
Certification
Contribute
Article
Blog
Video
Ebook
Interview Question
Collapse
Feed
Dashboard
Wallet
Learn
Achievements
Network
Refer
Rewards
SharpGPT
Premium
Contribute
Article
Blog
Video
Ebook
Interview Question
Register
Login
.NET
ADO.NET
Android
ASP.NET
C#
Databases & DBA
Design Patterns & Practices
iOS
Java
OOP/OOD
SharePoint
Software Testing
Web Development
WPF
View All
5
Reply
What is the use of DISPOSE method?
purosotam gupta
11y
7.6k
0
Reply
Delete Row
Delete Column
Insert Link
×
Insert
Cancel
Embed YouTube Video
×
Width (%)
Height (%)
Insert
Cancel
Table Options
×
Rows
Columns
First row as header
Create Table
Insert Image
×
Selected file:
Alignment
Left
Center
Right
Select an image from your device to upload
Upload to Server
Cancel
Submit
it is used for cleaning up the unmanaged objects
Suresh Logout kiya kar
10y
0
the dispose method is used to release Unmanaged resourse and to clean up object
Mahaveer Yadav
11y
0
Using Dispose method of IDisposable interface we can eliminate need of calling Garbage collector for more than one time . When you call Dispose method CLR will give instruction to the operating system which deletes un-managed object which is internally pointed by the managed object . Once CLR gives instruction to the operating system for deleting un-managed object , immediately CLR deletes managed object . For more details you can see
what is the use of dispose method in c#
in skillgun.com which contains too frequently asked
c# interview questions and answers
Palle Technologies
11y
0
The Dispose method performs all object cleanup, so the garbage collector no longer needs to call the objects' Object.Finalize override. Therefore, the call to the SuppressFinalize method prevents the garbage collector from running the finalizer. If the type has no finalizer, the call to GC.SuppressFinalize has no effect. Note that the actual work of releasing unmanaged resources is performed by the second overload of the Dispose method.
Khan Abrar Ahmed
11y
0
http://www.dotnet-tricks.com/Tutorial/netframework/P1MK271013-Difference-Between-Finalize-and-Dispose-Method.html
Munesh Sharma
11y
0
what is the use of IsPostBack Property in ASP.Net.
What is the difference between Server.Transfer and Response.Redirect?
Message