In .net (C#), If you have two types discovered through reflection is it possible to determine if one can be cast to the other? (implicit and/or explicit).
What I\'m tryi
To directly answer your question ...
If you have two types discovered through reflection is it possible to determine if one can be cast to the other? (implicit and/or explicit)
... you can use something similar to this :
to.GetType().IsAssignableFrom(from.GetType());
The Type.IsAssignableFrom() method can be used for exactly your purpose. This would also be considerably less verbose (even if only marginally more performant) than using TypeConverters.