<PackageReference Include="NUnit" Version="3.10.0" />

MemberInfoExtensions

public static class MemberInfoExtensions
Extensions to the various MemberInfo derived classes
public static IEnumerable<T> GetAttributes<T>(this MemberInfo info, bool inherit)

Returns an array of custom attributes of the specified type applied to this member

public static IEnumerable<T> GetAttributes<T>(this ParameterInfo info, bool inherit)

Returns an array of custom attributes of the specified type applied to this parameter

public static IEnumerable<T> GetAttributes<T>(this Assembly asm)

Returns an array of custom attributes of the specified type applied to this assembly