In C#, I have a function that passes in T using generics and I want to run a check to see if T is an object that implements a
T
generics
object
if (typeof(IMyInterface).IsAssignableFrom(typeof(T))
This checks whether a variable of type IMyInterface can be assigned from an instance of type T.
IMyInterface