Expanding GetCustomAttributes extension to support different types of members

This commit is contained in:
Chris Cameron
2018-02-06 10:33:13 -05:00
parent 79eb3a9cdf
commit 686d897a6e

View File

@@ -21,7 +21,7 @@ namespace ICD.Common.Utils.Extensions
/// <param name="extends"></param>
/// <param name="inherits"></param>
/// <returns></returns>
public static IEnumerable<T> GetCustomAttributes<T>(this MemberInfo extends, bool inherits)
public static IEnumerable<T> GetCustomAttributes<T>(this ICustomAttributeProvider extends, bool inherits)
where T : Attribute
{
if (extends == null)