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.

Answer Posted / 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



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

what is generics? can u explain 5 to 6 examples on generics that covers class,method,structure,list,delegates?

1937


What are generics in c#.net?

1002


What is main thread in c#?

915


What is the difference between string and stringbuilder in c#?

950


Does the variables of a private class-level inherited?

1011


What is the use of getcommandlineargs() method in c#.net?

969


In c#, what will happen if you do not explicitly provide a constructor for a class?

957


Is linkedhashset synchronized?

1118


Define thread? Explain about multithreading?

961


What is polymorphism c# example?

928


Which is faster dictionary or list?

916


What is using directive in c#?

1046


What is difference between static and readonly in c#?

1012


What is use of FormBoarderStyle Propertie

924


What does writeline mean?

978