mirror of
https://github.com/ICDSystems/ICD.Common.Utils.git
synced 2026-01-30 04:44:52 +00:00
Expanding GetCustomAttributes extension to support different types of members
This commit is contained in:
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user