Where does the dispose method lie and how can it be used to
clean up resources?
Answer / srinivas persineti
dispose method is in IDisposable interface,when you are
writing any class in .Net u should inherit the IDisposable
interface and u should implement the Dipoase method.in
dispose method u can call teh GC.Collect() to free up the
object.along with u can aslo call GC.SuppressFinalize() to
avoid multiple callings of GC.
| Is This Answer Correct ? | 4 Yes | 0 No |
How is .net core cross platform?
One user deleted one row after that another user through his dataset was trying to update same row. What will happen? How will you avoid this problem?
How do I spawn a thread?
Should I implement finalize on my class? Should I implement idisposable?
What are virtual destructures?
Which property is used in the email to send the content as HTML
When a Static Constructor called in .NET?
Difference between Debugging and tracing in .net
What is Delegate? Have ever used Delegates in your project.
What is Meta Data? Explain Types of Assemblies
How is threading done in .net?
Where does the dispose method lie and how can it be used to clean up resources?