Thursday, 31 March 2016

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

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

No comments:

Post a Comment