Changed Suits method to not look recursively for Interface attributes

This commit is contained in:
Owen Fraser-Green 2004-03-24 10:28:15 +00:00
parent 632d54e0db
commit 93aa620356

View file

@ -60,7 +60,7 @@ namespace DBus.DBusType
public static bool Suits(System.Type type)
{
object[] attributes = type.GetCustomAttributes(typeof(InterfaceAttribute), true);
object[] attributes = type.GetCustomAttributes(typeof(InterfaceAttribute), false);
if (attributes.Length == 1) {
return true;
} else {