Explain the difference between “as” and “is” operators used in C#?
"is" operator
- Used to check compatibility of the object with a given type
- Returns result as Boolean.
"as" operator
- Used for the casting of the object to type or class
BY Best Interview Question ON 14 Feb 2019