Class ArgumentMetadataBase
Class managing the argument information
public class ArgumentMetadataBase : IArgumentMetadata
- Inheritance
-
ArgumentMetadataBase
- Implements
- Derived
- Inherited Members
- Extension Methods
Properties
ArrayValues
public virtual object[] ArrayValues { get; set; }
Property Value
- object[]
CrossCheck
An Action to cross check multiple values. If something is not correct during check an ArgumentException shall be raised.
public virtual Action<IEnumerable<IArgumentMetadataParsed>> CrossCheck { get; set; }
Property Value
CustomPrefix
If Prefix contains Custom use CustomPrefix to analyze arguments
public virtual string CustomPrefix { get; set; }
Property Value
DataType
The Type of the parameter.
public virtual Type DataType { get; protected set; }
Property Value
Default
The dafault value to use if the value is not found
public virtual object Default { get; set; }
Property Value
Help
Argument help
public virtual string Help { get; set; }
Property Value
IsCaseInvariant
True if the argument shall be treated as case invariant
public virtual bool? IsCaseInvariant { get; set; }
Property Value
- bool?
IsEnum
The argument contains an enumeration value
public virtual bool IsEnum { get; protected set; }
Property Value
IsExtended
True if the argument is an extended argument
public virtual bool IsExtended { get; set; }
Property Value
IsFlag
The argument contains an enumeration value with FlagsAttribute
public virtual bool IsFlag { get; protected set; }
Property Value
IsMandatory
True if the argument shall be mandatory
public virtual bool IsMandatory { get; set; }
Property Value
IsMultiValue
The argument contains multiple values
public virtual bool IsMultiValue { get; set; }
Property Value
KeyValuePairSeparator
public virtual string KeyValuePairSeparator { get; set; }
Property Value
MaxValue
public virtual object MaxValue { get; set; }
Property Value
MinValue
public virtual object MinValue { get; set; }
Property Value
MultiValueSeparator
The separator used in the multiple value argument
public virtual char? MultiValueSeparator { get; set; }
Property Value
- char?
Name
Argument name
public virtual string Name { get; set; }
Property Value
Prefix
ArgumentPrefix prefix associated to IArgumentMetadata
public virtual ArgumentPrefix? Prefix { get; set; }
Property Value
PrefixInUse
The string representing the actual prefix from configuration
public string PrefixInUse { get; }
Property Value
ShortName
Argument short name
public virtual string ShortName { get; set; }
Property Value
Type
Set how to manage the IArgumentMetadata
public virtual ArgumentType? Type { get; set; }
Property Value
ValueType
ArgumentValueType to check input
public virtual ArgumentValueType? ValueType { get; set; }
Property Value
Methods
DefaultFileArgumentMetadata(Parser)
Dafault used to check for file argument
public static IArgumentMetadata DefaultFileArgumentMetadata(Parser parser)
Parameters
parser
Parser