Original Post
I'm stuck with a problem in C#. I got something like this: class SomeClass<SupportedType> { bool IsSupported<TestType>() { //I want to check if SupportedType is derived from TestType //without creating an instance neither of them. //The test must be done within this function... //though helper functions may be used. } } In c++ I could even make this during compiletime with some templates, but I'm not sure how to do this in c# since generics don't work exactly as templates... Thank you for any advice!