Question:

What is the difference between “as” and “is” operators in C#?

Answer:

  • “as” operator is used for casting object to type or class.
  • “is” operator is used for checking the object with type and this will return a Boolean value.

Keywords:

© 2017 QuizBucket.org