ArgumentProvider.CreateInstance Method

Creates an instance of the arguments type.

Definition

Namespace: Ookii.CommandLine.Support
Assembly: Ookii.CommandLine (in Ookii.CommandLine.dll) Version: 5.0.0+724ca9b7fa5edc075ec2ae65044e61b0d494fd1c
C#
public abstract Object CreateInstance(
	CommandLineParser parser,
	Object?[]? requiredPropertyValues
)

Parameters

parser  CommandLineParser
The CommandLineParser that is parsing the arguments.
requiredPropertyValues  Object[]
An array with the values of any arguments backed by required properties, or null if there are no required properties, or if the Kind property equals ProviderKind.Reflection.

Return Value

Object
An instance of the type indicated by the ArgumentsType property.

See Also