What is the difference between typeof(), GetType() and is?
here is an example.
class Employee { } class Developer : Employee { } void PrintTypes(Employee e) { print(e.GetType() == typeof(Employee)) // false print(e is Employee) // true print(e.GetType() == typeof(Developer)) // true }