mirror of
https://github.com/ICDSystems/ICD.Common.Utils.git
synced 2026-02-15 12:45:01 +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="extends"></param>
|
||||||
/// <param name="inherits"></param>
|
/// <param name="inherits"></param>
|
||||||
/// <returns></returns>
|
/// <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
|
where T : Attribute
|
||||||
{
|
{
|
||||||
if (extends == null)
|
if (extends == null)
|
||||||
|
|||||||
Reference in New Issue
Block a user