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 create multi-dimensional array?

1108


Is and as keyword in c# net?

968


What is an xsd file?

919


What is this keyword in C#?

969


How many types of methods are there in c#?

910


Write a program in c# to find the angle between the hours and minutes in a clock?

913


What are the types of inheritance in c#?

958


Distinguish between the Debug class and Trace class with its functionality?

1000


When should we use sealed class in c#?

896


List the different stages of a thread?

880


What are value types and reference types?

1126


What is the use of inheritance in c#?

905


What is parse method in c#?

909


Define a jagged array in c#?

897


What is check/uncheck?

1214