Answer the question
In order to leave comments, you need to log in
Is there a difference between is and Type.IsAssignableFrom?
Hello. Is is sugar under the hood doing Type.IsAssignableFrom ?
Answer the question
In order to leave comments, you need to log in
No, it's not the same thing.
the is operator under the hood calls the isinst IL instruction
AND it works with object instances.
Test if obj is an instance of class, returning null or an instance of that class or interface.
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question