public static TAttribute GetAttribute <TAttribute>([NotNull] this MethodInfo methodInfo) where TAttribute : Attribute { return(methodInfo.ArgumentNotNull().GetCustomAttributes(typeof(TAttribute), false).FirstOrDefault() as TAttribute); }
public static TAttribute GetAttribute <TAttribute>([NotNull] this MethodInfo methodInfo) where TAttribute : Attribute { return(methodInfo.ArgumentNotNull().GetCustomAttributes(typeof(TAttribute), false).FirstOrDefault() as TAttribute); }