Class Int32Argument
Argument that has an int value.
Inherited Members
Namespace: Benday.CommandsFramework
Assembly: Benday.CommandsFramework.dll
Syntax
public class Int32Argument : Argument<int>, IArgument, IInt32Argument
Constructors
| Edit this page View SourceInt32Argument(string)
Declaration
public Int32Argument(string name)
Parameters
| Type | Name | Description |
|---|---|---|
| string | name |
Properties
| Edit this page View SourceDataType
DataType for the argument
Declaration
public override ArgumentDataType DataType { get; }
Property Value
| Type | Description |
|---|---|
| ArgumentDataType |
Overrides
| Edit this page View SourceValueAsInt32
Value as int
Declaration
public int ValueAsInt32 { get; }
Property Value
| Type | Description |
|---|---|
| int |
Methods
| Edit this page View SourceGetDefaultValue()
Returns the default value
Declaration
protected override int GetDefaultValue()
Returns
| Type | Description |
|---|---|
| int | Default value for the argument |
Overrides
| Edit this page View SourceTrySetValue(string)
Try to convert the input value to int and then set it as the value for the argument
Declaration
public override bool TrySetValue(string input)
Parameters
| Type | Name | Description |
|---|---|---|
| string | input | Input value as string |
Returns
| Type | Description |
|---|---|
| bool | True if the value could be converted and set |