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

What is view state?

6 Answers   TCS,


What is the Difference between directcast and ctype?

3 Answers   Wipro,


What is the purpose of enumerable class in .net?

0 Answers  


How can you manage pagination on a page using .Net?

1 Answers  


Write an StoredProcedure to get the values of a column within a date range.

1 Answers   Deloitte,






What is the advantage of .net core?

0 Answers  


What is meant by managed and unmanaged code?

0 Answers  


What relationship is between a process, application domain, and application?

0 Answers  


How can you turn-on and turn-off cas?

0 Answers  


Difference between VB.NET and C#. Which is faster ?

16 Answers   TCS,


How Garbage Collector (GC) Works?

1 Answers  


What is the use of edititem template ingridview?

1 Answers   C Squared Systems, Microsoft,


Categories