Golgappa.net | Golgappa.org | BagIndia.net | BodyIndia.Com | CabIndia.net | CarsBikes.net | CarsBikes.org | CashIndia.net | ConsumerIndia.net | CookingIndia.net | DataIndia.net | DealIndia.net | EmailIndia.net | FirstTablet.com | FirstTourist.com | ForsaleIndia.net | IndiaBody.Com | IndiaCab.net | IndiaCash.net | IndiaModel.net | KidForum.net | OfficeIndia.net | PaysIndia.com | RestaurantIndia.net | RestaurantsIndia.net | SaleForum.net | SellForum.net | SoldIndia.com | StarIndia.net | TomatoCab.com | TomatoCabs.com | TownIndia.com
Interested to Buy Any Domain ? << Click Here >> for more details...


How we free the memory in C#.NET.

Answers were Sorted based on User's Feedback



How we free the memory in C#.NET...

Answer / prashanth s

Actually the freeing of the memory is done by the CLR
automatically by calling the garbage collection routine.
But the declared objects by the user can be deallocated
manually by using dispose function in the class by
implementing IDisposable interface in the object class.
Otherwise it can also be done by implementing a destructor
in the class, as the destructor defined will help
deallocating the object allocation after the usage of the
object gets over, i.e the object is not used anywhere else
in the program.

Is This Answer Correct ?    15 Yes 0 No

How we free the memory in C#.NET...

Answer / geetanjali

by desructor or globilization

Is This Answer Correct ?    7 Yes 5 No

How we free the memory in C#.NET...

Answer / mayur teli

We can also use Using statement
when we use it, there is no need to explicitly dispose the object. Using statement take care of it.

Is This Answer Correct ?    3 Yes 1 No

Post New Answer

More C Sharp Interview Questions

What are Types of assemblies that can be created in dotnet

0 Answers  


Why is it not a good idea to insert code into InitializeComponent method when working with Visual Studio ?

1 Answers  


What is a partial class. Give an example?

0 Answers  


What is check/uncheck?

0 Answers  


Is string nullable in c#?

0 Answers  


Define assert() method? How does it work?

0 Answers   Siebel,


Does c# do array bounds checking?

0 Answers  


What is Interface and Abstraction (in real time scenario)

4 Answers   HCL,


What is anonymous types in c#?

0 Answers  


What is difference between hashtable and dictionary in c#?

0 Answers  


Define parsing? Explain how to parse a datetime string?

0 Answers  


Which attribute is used in order that the method can be used as webservice?

0 Answers  


Categories