Changed Suits method to not look recursively for Interface attributes
authorOwen Fraser-Green <owen@discobabe.net>
Wed, 24 Mar 2004 10:28:15 +0000 (10:28 +0000)
committerOwen Fraser-Green <owen@discobabe.net>
Wed, 24 Mar 2004 10:28:15 +0000 (10:28 +0000)
mono/DBusType/ObjectPath.cs

index e20ae18..6e03e2d 100644 (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 {