Class ActionDescriptor.Argument
Represents an argument of an action, consisting of a name, type, and description.
public class ActionDescriptor.Argument : Descriptor, IEquatable<Descriptor>, IComparable<Descriptor>
- Inheritance
-
ActionDescriptor.Argument
- Implements
- Inherited Members
Constructors
Argument(string, Type, string)
Initializes a new instance of the ActionDescriptor.Argument class.
public Argument(string name, Type type, string description)
Parameters
namestringThe name of the argument.
typeTypeThe type of the argument.
descriptionstringThe description of the argument.
Argument(string, Type, string, object)
Initializes a new instance of the ActionDescriptor.Argument class.
public Argument(string name, Type type, string description, object defaultValue)
Parameters
namestringThe name of the argument.
typeTypeThe type of the argument.
descriptionstringThe description of the argument.
defaultValueobjectThe default value for this argument.
Properties
DefaultValue
Gets the default value of the argument.
public object DefaultValue { get; }
Property Value
- object
The default value or
nullif no default value is defined.
Type
Gets the type of the argument.
public Type Type { get; }
Property Value
- Type
The argument type.