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 / dhinaharan

obj.dispose has to be used and not obj=null, bcoz JIT
compiler is optimizing compiler, and setting a local
variable or parameter to null is the same as not
referencing the variable at all.

Is This Answer Correct ?    2 Yes 1 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

How to add a readonly property in c#.net

880


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

931


What are the string functions in c#?

913


Wht executescaler method is used?

897


Why array is faster than arraylist in c#?

939


How do you create empty strings in c#?

871


What are data types examples?

876


What does typeof return c#?

873


What is this keyword in C#?

915


Why are local variables stored in stack?

965


Can a constructor be static in c#?

948


What is .net c#?

838


What is getenumerator?

802


How is exception handling implemented in c#?

977


What types of object can I throw as exceptions?

885