Class Option
Inheritance
System.Object
Option
Inherited Members
System.Object.Equals(System.Object)
System.Object.Equals(System.Object, System.Object)
System.Object.GetHashCode()
System.Object.GetType()
System.Object.MemberwiseClone()
System.Object.ReferenceEquals(System.Object, System.Object)
Namespace: Mars.Components.Starter
Assembly: Mars.Components.dll
Syntax
public abstract class Option
Constructors
| Improve this Doc View SourceOption(String, String, Int32, Boolean)
Declaration
protected Option(string prototype, string description, int maxValueCount = 1, bool hidden = false)
Parameters
Type | Name | Description |
---|---|---|
System.String | prototype | |
System.String | description | |
System.Int32 | maxValueCount | |
System.Boolean | hidden |
Properties
| Improve this Doc View SourceDescription
Declaration
public string Description { get; }
Property Value
Type | Description |
---|---|
System.String |
Hidden
Declaration
public bool Hidden { get; }
Property Value
Type | Description |
---|---|
System.Boolean |
MaxValueCount
Declaration
public int MaxValueCount { get; }
Property Value
Type | Description |
---|---|
System.Int32 |
OptionValueType
Declaration
public OptionValueType OptionValueType { get; }
Property Value
Type | Description |
---|---|
OptionValueType |
Prototype
Declaration
public string Prototype { get; }
Property Value
Type | Description |
---|---|
System.String |
Methods
| Improve this Doc View SourceInvoke(OptionContext)
Declaration
public void Invoke(OptionContext c)
Parameters
Type | Name | Description |
---|---|---|
OptionContext | c |
OnParseComplete(OptionContext)
Declaration
protected abstract void OnParseComplete(OptionContext c)
Parameters
Type | Name | Description |
---|---|---|
OptionContext | c |
ToString()
Declaration
public override string ToString()
Returns
Type | Description |
---|---|
System.String |
Overrides
System.Object.ToString()