R

Ram Sharma • 3.40K Points
Extraordinary

Q. What does `is` keyword do in C#?

  • (A) Casts object to type
  • (B) Checks object type
  • (C) Creates instance
  • (D) Declares inheritance

Explanation by: Ram Sharma
`is` checks whether an object is compatible with a given type.

You must be Logged in to update hint/solution

Discusssion

Login to discuss.

Be the first to start discuss.