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 {
}
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 {
}