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

Why MVC programming model preferred?

1 Answers  


What?s different about a Windows service as compared to a regular application?

1 Answers  


How is .net able to support a lot of languages?

0 Answers  


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

16 Answers   TCS,


Can you explain what do you understand about web service?

0 Answers   Accenture,


How to prepare parametrized (with more than one parameters) crystal report.pls tell me the code procedure, if any body can?

0 Answers  


Explain cas (code access security)?

0 Answers  


Differences between datagrid, datalist and repeater in .net?

0 Answers  


What is multiThreading in .NET?

0 Answers  


questions on various scenarios on exception handling? like for example.... try { a; b; ...exception occurs here...what happens...will catch execute or will finally execute...will c execute c; } catch { a; b; c; } fianlly { a; b; }

1 Answers   Manhattan,


how we can capture the value in textbox when selectedvluechanged event of gridview is fired

1 Answers  


What are the collections you've used?

0 Answers  


Categories