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...

What is the difference between these statements
obj=null and obj.dispose()

Answer Posted / sanjeev

obj=null
when we use obj=null then this object has existence in
memory with no any value.

obj.dispose()
when we use obj.dispose() then the clr release the memory
and there are no any existence of that object into the
memory. so it will be better to use obj.dispose()

Note:- By default it is automatically disposed by the clr
when there are no any references in the left

Is This Answer Correct ?    8 Yes 0 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What are the generation of Garbage Collection in C# .NET ?

912


List out two different types of errors in c#?

881


Can a dictionary have duplicate keys c#?

859


What is session management in c#?

908


What is the difference between list and arraylist in c#?

806


Why do we parse in c#?

819


What are the types of operator?

802


Can hashtable have duplicate keys in c#?

826


Why do we need static class in c#?

943


Is c# substring zero based?

911


What is the difference between ref and out parameters in c#?

931


How do I move from one form to another in c#?

833


What is iqueryable and ienumerable in c#?

901


What is a multi line comment?

906


What is iqueryable in c#?

831