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
How to create multi-dimensional array?
Is and as keyword in c# net?
What is an xsd file?
What is this keyword in C#?
How many types of methods are there in c#?
Write a program in c# to find the angle between the hours and minutes in a clock?
What are the types of inheritance in c#?
Distinguish between the Debug class and Trace class with its functionality?
When should we use sealed class in c#?
List the different stages of a thread?
What are value types and reference types?
What is the use of inheritance in c#?
What is parse method in c#?
Define a jagged array in c#?
What is check/uncheck?