diff --git a/ICD.Common.Utils/ReflectionUtils.cs b/ICD.Common.Utils/ReflectionUtils.cs index 1038049..8f52c17 100644 --- a/ICD.Common.Utils/ReflectionUtils.cs +++ b/ICD.Common.Utils/ReflectionUtils.cs @@ -245,14 +245,14 @@ namespace ICD.Common.Utils /// /// /// - public static IEnumerable GetCustomAttributes(Assembly assembly) + public static IEnumerable GetCustomAttributes(Assembly assembly) where T : Attribute { if (assembly == null) throw new ArgumentNullException("assembly"); #if SIMPLSHARP - return assembly.GetCustomAttributes(typeof(T), false); + return assembly.GetCustomAttributes(typeof(T), false).Cast(); #else return assembly.GetCustomAttributes(); #endif