From 686d897a6ea476cd3885c2aaac8804ac8475e45f Mon Sep 17 00:00:00 2001 From: Chris Cameron Date: Tue, 6 Feb 2018 10:33:13 -0500 Subject: [PATCH] Expanding GetCustomAttributes extension to support different types of members --- ICD.Common.Utils/Extensions/ReflectionExtensions.cs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/ICD.Common.Utils/Extensions/ReflectionExtensions.cs b/ICD.Common.Utils/Extensions/ReflectionExtensions.cs index 2b2a656..f22b19b 100644 --- a/ICD.Common.Utils/Extensions/ReflectionExtensions.cs +++ b/ICD.Common.Utils/Extensions/ReflectionExtensions.cs @@ -21,7 +21,7 @@ namespace ICD.Common.Utils.Extensions /// /// /// - public static IEnumerable GetCustomAttributes(this MemberInfo extends, bool inherits) + public static IEnumerable GetCustomAttributes(this ICustomAttributeProvider extends, bool inherits) where T : Attribute { if (extends == null)