<PackageReference Include="NUnit" Version="4.0.1" />

ParameterWrapper

The ParameterWrapper class wraps a ParameterInfo so that it may be used in a platform-independent manner.
public bool IsOptional { get; }

Gets a value indicating whether the parameter is optional

public IMethodInfo Method { get; }

Gets an IMethodInfo representing the method for which this is a parameter.

public ParameterInfo ParameterInfo { get; }

Gets the underlying ParameterInfo

public Type ParameterType { get; }

Gets the Type of the parameter

public ParameterWrapper(IMethodInfo method, ParameterInfo parameterInfo)

Construct a ParameterWrapper for a given method and parameter

public T[] GetCustomAttributes<T>(bool inherit)

Returns an array of custom attributes of the specified type applied to this method

public bool IsDefined<T>(bool inherit)

Gets a value indicating whether one or more attributes of the specified type are defined on the parameter.