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

 Posted by Nadeemshaik on 7/9/2013 | Category: C# Interview questions | Views: 1655 | Points: 40

“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.

Asked In: Many Interviews | Alert Moderator 

Comments or Responses

Login to post response

More Interview Questions by Nadeemshaik