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