src/Mimp.SeeSharper.Reflection/MethodInfoExtensions.cs
/// <summary>
/// Check if method has no return type.
/// </summary>
/// <param name="method"></param>
/// <returns></returns>
Check if method has no return type.
Check if method has no return type .
public static bool IsAction(this MethodInfo method)
        {
            if (method is null)
                throw new ArgumentNullException(nameof(method));
            return method.ReturnType.IsVoid();
        }
public static bool IsAction ( this MethodInfo method ) { if ( method is null ) throw new ArgumentNullException ( nameof ( method ) ) ; return method . ReturnType . IsVoid ( ) ; }
Check if method has no return type.
Check if method has no return type .
None
MethodInfo
this
method
None