Home > DeveloperSection > Interviews > What is difference between is and as operators in c#?

Posted on    September-20-2014 12:06 AM

 C# .NET  C# 
Ratings:
 1 Answer(s)
  894  View(s)
Rate this:

Anchal Kesharwani
Anchal Kesharwani

Total Post:15

Points:75
Posted on    September-20-2014 12:06 AM

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


Don't want to miss updates? Please click the below button!

Follow MindStick