Imagine you\'ve been given two System.Type\'s and you want to determine if there is an implicit or explicit type conversion from one to the other.
Without specifica
I don't think so. You'll have use reflection and look for those good ol' op_Implicit
and op_Explicit
static methods on each type.
This brings up the very interesting question: which has a greater performance impact, reflection (this answer) or using exceptions for control flow (Quartermeister's)? I honestly couldn't guess. You might want to profile each and find out for yourself.