Instead of using the is operator for type checking, you can (should not) implement your own override interface method that performs a similar function and implement it with the is (or typeof()/GetType() ) operator on your regular class group.
However, if you use the is operator in such a way that it can be tested in this way, you are most likely defeating the goal of polymorphism and interfaces somewhere along the line. I would think if I could just get rid of it.
source share