V
Voivod
Suppose I have an interface IPlugin, and a Type myType.
What's the best way to ask myType if it implements the IPlugin
interface?
I came out with this, but I don't know if there are better
alternatives:
bool implementsIPlugin = typeof(IPlugin).IsAssignableFrom(myType);
What's the best way to ask myType if it implements the IPlugin
interface?
I came out with this, but I don't know if there are better
alternatives:
bool implementsIPlugin = typeof(IPlugin).IsAssignableFrom(myType);