mirror of
https://github.com/ICDSystems/ICD.Common.Utils.git
synced 2026-04-12 12:07:05 +00:00
Expanding GetCustomAttributes extension to support different types of members
This commit is contained in:
parent
79eb3a9cdf
commit
686d897a6e
1 changed files with 1 additions and 1 deletions
|
|
@ -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)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue