Hem / Tips & tricks
SomeClass s = new SomeClass();Type[] interfaces = s.GetType().GetInterfaces();Console.WriteLine(“Klassen SomeClass stöder följande interface:”);for(int n = 0; n < interfaces.Length; n++){ Console.WriteLine(interfaces[n]);}