Wednesday 23 December 2015

What is difference between is and as operators in c#?

“is” operator is used to check the compatibility of an object with a given type and it returns the result as Boolean.
 “as” operator is used for casting of object to a type or a class.

No comments:

Post a Comment