public static TAttribute GetReflectionAttribute <TAttribute>(this ICommonMethod commonMethod, bool throwExceptionIfNotFound = false) where TAttribute : Attribute { return((TAttribute)commonMethod.GetReflectionAttribute(typeof(TAttribute), throwExceptionIfNotFound)); }
public static bool TryGetReflectionAttribute <TAttribute>(this ICommonMethod commonMethod, out TAttribute foundAttribute) where TAttribute : Attribute { return((foundAttribute = commonMethod.GetReflectionAttribute <TAttribute>()) != null); }