we are quite in a rush at job right now that prevent me from blogging. Anyway, I always keep an eye on things I can learn and tonight while I was browsing in the Lutz Roeder's Reflector, I have seen something very interesting.
A few days ago, with Damien Pinauldt, I was wondering how to to detect if a type implements a given interface or not. Of course if we have an instance, this is very simple but when having only a type, I was not knowing how to do that.
I will here recall the use of the "is operator" and then show how to use the MakeGenericType method to retreieve a generic version of a type to be able to use the IsAssignableFrom method. [Plus]