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