Difference between direct type casting and using "as" keyword?
Answer / amitabh dubey
Explicit cast throws an InvalidCastException if the object
can not be casted. you have to
Keep the casting under try / catch block to handle the
exception.
Instead you can use as operator which return null if it
can not cast the object.
Is This Answer Correct ? | 25 Yes | 0 No |
difference between managed code and unmanaged code ?
What is delegates in c# and uses of delegates?
What is the purpose of a console table?
Which is the base class in c#?
Is string nullable in c#?
What is literal control
About delegates and events?
How many variables do you need?
What are jagged arrays used for?
What is the importance of closing an ado.net application?
1) how to delete duplicate records from table in sql server 2005 2) what is run time polymorphism
Difference between value and reference type.