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
Explain the difference between Response.Write () and Response.Output.Write ().
Why main method is static in c#?
Explain About CLS?
What is the meaning of extention?
What is the wildcard character in sql?
What is the concept of strong names?
Why do we use 0?
Does c# have a 'throws' clause?
What is a interface in c#?
What is the use of 0 in c#?
What is thread safe in c#?
What is difference between private and protected?
How to handle exceptions that are raised in a component?
What are constructors in c#?
windows c# using datagridview in edit form sql server