How can you clean up objects holding resources from within
the code?

Answers were Sorted based on User's Feedback



How can you clean up objects holding resources from within the code?..

Answer / mahesh

By Using the iDisposable method

Is This Answer Correct ?    6 Yes 1 No

How can you clean up objects holding resources from within the code?..

Answer / raju jaiwardhan

you would need to use a constraint to mandate types
implementing the IDisposable interface to call the Dispose
method.

Is This Answer Correct ?    2 Yes 0 No

Post New Answer

More Dot Net General Interview Questions

Explain what is the difference between constants and read-only variables?

0 Answers  


What is the difference between a namespace and assembly name in .net?

0 Answers  


How to store and retrieve images in SQL server database through VB.NET?

1 Answers  


What is the use of immutability?

0 Answers  


What is boxing in .NET?

1 Answers  






How to implement getcommon method in class a? Are you seeing any problem in the implementation?

0 Answers  


Can a dll be changed to an exe?

0 Answers  


Can you share processes between Windows services?

2 Answers  


which methos do you invoke on the dataadapter control to load your generated dataset with data?

0 Answers  


Explain the difference between asp.net and asp?

0 Answers  


Tell us what is json data, and what is one way that .net developers can work with json?

0 Answers  


What is DTS and explain the purpose of it?

0 Answers   ADITI,


Categories