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 |
What is an exe and a dll?
What is a strategy pattern? Implement it.
Explain the difference between the while and for loop. Provide a .net syntax for both loops?
What is the difference between a namespace and assembly name in .net?
Explain how to rename a table using sql queries?
Is .net core the future?
Example from .net. Integer & struct are value types or reference types in .net?
What's the .net collection class that allows an element to be accessed using a unique key?
Explain me what is the difference between an abstract class and an interface?
Where does the dispose method lie and how can it be used to clean up resources?
Explain can 2 different applications use the same dll in gac at the same time?
What is .net assembly?