<PackageReference Include="System.Reflection.Emit.ILGeneration" Version="4.7.0" />

ParameterBuilder

public class ParameterBuilder
Creates or associates parameter information.
public virtual int Attributes { get; }

Retrieves the attributes for this parameter.

public bool IsIn { get; }

Retrieves whether this is an input parameter.

public bool IsOptional { get; }

Retrieves whether this parameter is optional.

public bool IsOut { get; }

Retrieves whether this parameter is an output parameter.

public virtual string Name { get; }

Retrieves the name of this parameter.

public virtual int Position { get; }

Retrieves the signature position for this parameter.

public virtual void SetConstant(object defaultValue)

Sets the default value of the parameter.

public void SetCustomAttribute(ConstructorInfo con, byte[] binaryAttribute)

Set a custom attribute using a specified custom attribute blob.

public void SetCustomAttribute(CustomAttributeBuilder customBuilder)

Set a custom attribute using a custom attribute builder.