ArgumentCreationInfo Structure

Provides information needed to create an instance of the GeneratedArgumentBase class.

Definition

Namespace: Ookii.CommandLine.Support
Assembly: Ookii.CommandLine (in Ookii.CommandLine.dll) Version: 4.2.0+a4d3631e4dcc0970081ed435288efdebc1325f83
C#
public struct ArgumentCreationInfo
Inheritance
Object    ValueType    ArgumentCreationInfo

Remarks

This structure is used by the source generator when using the GeneratedParserAttribute attribute. It should not normally be used by other code.

Properties

AliasAttributes Gets or sets a list of AliasAttribute attributes.
AllowDuplicateDictionaryKeys Gets or sets a value that indicates whether a dictionary argument allows duplicate keys.
AllowsNull Gets or sets a value that indicates whether the argument allows null values.
AlternateDefaultValue Gets or sets the default value determined from the property initializer.
ArgumentType Gets or sets the type of the argument.
Attribute Gets or sets the CommandLineArgumentAttribute.
CallMethod Gets or sets a delegate used to call the method that defined the argument.
Converter Gets or sets the argument converter.
DefaultKeyDescription Gets or sets the default value description for the key type.
DefaultValueDescription Gets or sets the default value description.
DescriptionAttribute Gets or sets the DescriptionAttribute.
ElementType Gets or sets the element type of the argument, without NullableT.
ElementTypeWithNullable Gets or sets the element type of the argument, including NullableT if it is one.
GetProperty Gets or sets a delegate used to get the value of property that defined the argument.
KeyType Gets or sets the key type of a dictionary argument.
KeyValueSeparatorAttribute Gets or sets the KeyValueSeparatorAttribute.
Kind Gets or sets the argument kind.
MemberName Gets or sets the name of the property or method that defined the argument.
MultiValueSeparatorAttribute Gets or sets the MultiValueSeparatorAttribute.
Parser Gets or sets the parser for this argument.
Position Gets or sets the implicit position if IsPositional was used.
RequiredProperty Gets or sets a value that indicates whether the argument was defined by a C# 11 required property.
SetProperty Gets or sets a delegate used to set the value of property that defined the argument.
ShortAliasAttributes Gets or sets a list of ShortAliasAttribute attributes.
ValidationAttributes Gets or sets a list of ArgumentValidationAttribute attributes.
ValueDescriptionAttribute Gets or sets the ValueDescriptionAttribute.
ValueType Gets or sets the value type of a dictionary argument.

Methods

EqualsIndicates whether this instance and a specified object are equal.
(Inherited from ValueType)
GetHashCodeReturns the hash code for this instance.
(Inherited from ValueType)
GetTypeGets the Type of the current instance.
(Inherited from Object)
ToStringReturns the fully qualified type name of this instance.
(Inherited from ValueType)

Thread Safety

Any public static (Shared in Visual Basic) members of this type are thread safe. Any instance members are not guaranteed to be thread safe.

See Also