var knownTypesFromAttributes = new List<Type> ();
- foreach (var attr in type.GetCustomAttributes (typeof(KnownTypeAttribute)))
+ foreach (var attr in type.GetCustomAttributes (typeof (KnownTypeAttribute), false))
knownTypesFromAttributes.Add ((attr as KnownTypeAttribute).Type);
if (knownTypes != null)
return t;
if (baseType != null)
- foreach (var attr in baseType.GetCustomAttributes (typeof(KnownTypeAttribute)))
+ foreach (var attr in baseType.GetCustomAttributes (typeof (KnownTypeAttribute), false))
if ((attr as KnownTypeAttribute).Type.FullName.Equals (properName))
return (attr as KnownTypeAttribute).Type;