Given this:
Interface IBase {string X {get;set;}}
Interface ISuper {string Y {get;set;}}
class Base : IBase {etc...}
class Super : Base, ISuper {etc...}
void Questionable (Base b) {
Console.WriteLine ("The class supports the following interfaces... ")
// The Magic Happens Here
}
What can I replace "The Magic" with to display the supported interfaces on object b?
Yes, I know by being of class Base it supports "IBase", the real hierarchy is more complex that this. :)
Thanks! -DF5
EDIT: Now that I've seen the answer I feel stupid for not tripping over that via Intellisense. :)
Thanks All! -DF5