ALLInterview.com :: Home Page KalAajKal.com
 Advertise your Business Here     
Browse  |   Placement Papers  |   Company  |   Code Snippets  |   Certifications  |   Visa Questions
Post Question  |   Post Answer  |   My Panel  |   Search  |   Articles  |   Topics  |   ERRORS new
   Refer this Site  Refer This Site to Your Friends  Site Map  Bookmark this Site  Set it as your HomePage  Contact Us     Login  |  Sign Up                      
Do you have a collection of Interview Questions and interested to share with us!!
Please send that collection to along with your userid / name. ThanQ
Google
 
Categories  >>  Software  >>  Microsoft Related  >>  C Sharp
 
 


 

 
 Visual Basic interview questions  Visual Basic Interview Questions
 C Sharp interview questions  C Sharp Interview Questions
 ASP.NET interview questions  ASP.NET Interview Questions
 VB.NET interview questions  VB.NET Interview Questions
 COM+ interview questions  COM+ Interview Questions
 ADO.NET interview questions  ADO.NET Interview Questions
 IIS interview questions  IIS Interview Questions
 MTS interview questions  MTS Interview Questions
 Crystal Reports interview questions  Crystal Reports Interview Questions
 BizTalk interview questions  BizTalk Interview Questions
 Dot Net interview questions  Dot Net Interview Questions
 Exchange Server interview questions  Exchange Server Interview Questions
 Microsoft Related AllOther interview questions  Microsoft Related AllOther Interview Questions
Question
How can you clean up objects holding resources from within 
the code? 
 Question Submitted By :: Jagan
I also faced this Question!!     Rank Answer Posted By  
 
  Re: How can you clean up objects holding resources from within the code?
Answer
# 1
We can cleanup objects by implementing IDisposable 
interface and providing the implementation for Dispose 
method.
 
Is This Answer Correct ?    1 Yes 0 No
Mohan Kumar E.
 
  Re: How can you clean up objects holding resources from within the code?
Answer
# 2
We can clean up object holding resources  by using dispose()
method. Example 
DataSet DS=new DataSet()

DS.Dispose()
 
Is This Answer Correct ?    1 Yes 0 No
Ramesh
 
 
 
  Re: How can you clean up objects holding resources from within the code?
Answer
# 3
Easiest way is to make the value of that object as null, 
once the scope of that object is over. We generally do this 
in the 'finally' section of the code.
 
Is This Answer Correct ?    0 Yes 0 No
Tarun Singla
 

 
 
 
Other C Sharp Interview Questions
 
  Question Asked @ Answers
 
What is the name of the implicit input parameter of a set accessor for any property?  1
How do you generate documentation from the C# file commented properly with a command-line compiler?  1
What is short circuit logical evaluation? TCS1
What?s the advantage of using System.Text.StringBuilder over System.String?  1
Why are there five tracing levels in System.Diagnostics.TraceSwitcher?  1
Explain constructor. Wipro4
Can we inherit a private class in chsarp? how? explain(with code) ? Techno-Labs3
What?s an abstract class?  1
can it possible to acees the virthual method using the override method object? plz give me the example  2
How can you prevent classes to be inherited? Microsoft4
What are the ways to deploy an assembly?  1
what is an internal specifier? what happens internally when I use access specifier Internal ? rsystems2
Can you change the value of a variable while debugging a C# application?  1
In c# how to connect crystal report?  2
what is Encapsulation? Tech-Mahindra1
When you inherit a protected class-level variable, who is it available to? IBM3
What are object oriented concepts? Microsoft2
what is a template? Choice-Solutions1
What?s the difference between the System.Array.CopyTo() and System.Array.Clone()?  2
what are the different ways to cleaning up objects? Wipro1
 
For more C Sharp Interview Questions Click Here 
 
 
 
 
 
   
Copyright Policy  |  Terms of Service  |  Help  |  Site Map 1  |  Articles  |  Site Map  |   Site Map  |  Contact Us interview questions urls   External Links 
   
Copyright © 2007  ALLInterview.com.  All Rights Reserved.

ALLInterview.com   ::  Forum9.com   ::  KalAajKal.com