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