src/Mimp.SeeSharper.Reflection/MethodInfoExtensions.cs
/// <summary>
/// Return all parameter types and the return type from method.
/// </summary>
/// <param name="method"></param>
/// <returns></returns>
Return all parameter types and the return type from method.
Return all parameter types and the return type from method .
public static IEnumerable<Type> GetMethodTypes(this MethodInfo method)
        {
            if (method is null)
                throw new ArgumentNullException(nameof(method));
            foreach (var t in method.GetParameterTypes())
                yield return t;
            yield return method.ReturnType;
        }
public static IEnumerable < Type > GetMethodTypes ( this MethodInfo method ) { if ( method is null ) throw new ArgumentNullException ( nameof ( method ) ) ; foreach ( var t in method . GetParameterTypes ( ) ) yield return t ; yield return method . ReturnType ; }
Return all parameter types and the return type from method.
Return all parameter types and the return type from method .
None
MethodInfo
this
method
None