Open sandboxFocus

Method OfParameterType

OfParameterType<T>(IParameterList)

Selects the parameters of a given type.

Declaration
public static IEnumerable<IParameter> OfParameterType<T>(this IParameterList parameters)
Parameters
Type Name Description
IParameterList parameters

The parameter list to filter.

Returns
Type Description
IEnumerable<IParameter>

An enumerable of parameters whose types are convertible to T.

Type Parameters
Name Description
T

The type to filter parameters by, which must be a compile-time or run-time-or-compile-time type.

OfParameterType(IParameterList, Type)

Selects the parameters of a given type.

Declaration
public static IEnumerable<IParameter> OfParameterType(this IParameterList parameters, Type type)
Parameters
Type Name Description
IParameterList parameters

The parameter list to filter.

Type type

The reflection type to filter parameters by.

Returns
Type Description
IEnumerable<IParameter>

An enumerable of parameters whose types are convertible to type.

OfParameterType(IParameterList, IType)

Selects the parameters of a given type.

Declaration
public static IEnumerable<IParameter> OfParameterType(this IParameterList parameters, IType type)
Parameters
Type Name Description
IParameterList parameters

The parameter list to filter.

IType type

The Metalama type to filter parameters by.

Returns
Type Description
IEnumerable<IParameter>

An enumerable of parameters whose types are convertible to type.