0

I want to know if an object is a type without including its subtypes. For example:

class Dog {

}

class Labrador: Dog {

}

//I want this to be false
if pet is Dog {

}
Andrew
  • 7,693
  • 11
  • 43
  • 81

0 Answers0