I'm not sure of the exact terminology here. Basically, if I have a model like:
class Student : IDoSchool {}
class Freshman : Student {}
interface IDoSchool {}
What code would tell me that Freshman doesn't directly implement any interfaces and Student directly implements IDoSchool?
In other words (disregarding bad terminology) I want something like this:
typeof(Freshman).GetInterfaces(BindingFlags.DeclaredOnly); // nothing
typeof(Student).GetInterfaces(BindingFlags.DeclaredOnly); // IDoSchool
Thoughts?