top button
Flag Notify
    Connect to us
      Site Registration

Site Registration

What is difference between is and as operator in C#?

0 votes
329 views
What is difference between is and as operator in C#?
posted May 23, 2017 by Pooja Bhanout

Share this question
Facebook Share Button Twitter Share Button LinkedIn Share Button

1 Answer

0 votes

The Difference between IS and As is that.. IS - Is Operator is used to Check the Compatibility of an Object with a given Type and it returns the result as a Boolean (True Or False). AS - As Operator is used for Casting of Object to a given Type or a Class.Both 'is' and 'as' keywords are used for type casting in C#.

answer May 24, 2017 by Shweta Singh
...