|
| Value (string text) |
|
| Value (string text, bool explicitlyAssigned) |
|
| Value (string text, bool explicitlyAssigned, bool forced, bool fromSeparator) |
|
bool | Equals (Value other) |
|
override bool | Equals (object obj) |
|
override int | GetHashCode () |
|
|
bool | ExplicitlyAssigned [get] |
| Whether this value came from a long option with "=" separating the name from the value.
|
|
bool | FromSeparator [get] |
| Whether this value came from a sequence specified with a separator (e.g., "--files a.txt,b.txt,c.txt")
|
|
bool | Forced [get] |
| Whether this value came from args after the – separator (when EnableDashDash = true)
|
|
Properties inherited from CommandLine.Core.Token |
TokenType | Tag [get] |
|
string | Text [get] |
|
Definition at line 88 of file Token.cs.
◆ Value() [1/3]
CommandLine.Core.Value.Value |
( |
string |
text | ) |
|
Definition at line 90 of file Token.cs.
91 : this(text, false, false, false) { }
◆ Value() [2/3]
CommandLine.Core.Value.Value |
( |
string |
text, |
|
|
bool |
explicitlyAssigned |
|
) |
| |
Definition at line 93 of file Token.cs.
94 : this(text, explicitlyAssigned, false, false) { }
◆ Value() [3/3]
CommandLine.Core.Value.Value |
( |
string |
text, |
|
|
bool |
explicitlyAssigned, |
|
|
bool |
forced, |
|
|
bool |
fromSeparator |
|
) |
| |
Definition at line 96 of file Token.cs.
98 {
102 }
bool Forced
Whether this value came from args after the – separator (when EnableDashDash = true)
bool FromSeparator
Whether this value came from a sequence specified with a separator (e.g., "--files a....
bool ExplicitlyAssigned
Whether this value came from a long option with "=" separating the name from the value.
◆ Equals() [1/2]
override bool CommandLine.Core.Value.Equals |
( |
object |
obj | ) |
|
Definition at line 133 of file Token.cs.
134 {
136
137 if (other != null)
138 {
140 }
141
142 return base.Equals(obj);
143 }
◆ Equals() [2/2]
bool CommandLine.Core.Value.Equals |
( |
Value |
other | ) |
|
Definition at line 121 of file Token.cs.
122 {
123 if (other == null)
124 {
125 return false;
126 }
127
128 return Tag.Equals(other.Tag) &&
Text.Equals(other.Text) &&
Forced == other.Forced;
129 }
◆ GetHashCode()
override int CommandLine.Core.Value.GetHashCode |
( |
| ) |
|
Definition at line 145 of file Token.cs.
146 {
147 return new {
Tag,
Text }.GetHashCode();
148 }
◆ ExplicitlyAssigned
bool CommandLine.Core.Value.ExplicitlyAssigned |
|
get |
Whether this value came from a long option with "=" separating the name from the value.
Definition at line 107 of file Token.cs.
◆ Forced
bool CommandLine.Core.Value.Forced |
|
get |
Whether this value came from args after the – separator (when EnableDashDash = true)
Definition at line 117 of file Token.cs.
◆ FromSeparator
bool CommandLine.Core.Value.FromSeparator |
|
get |
Whether this value came from a sequence specified with a separator (e.g., "--files a.txt,b.txt,c.txt")
Definition at line 112 of file Token.cs.
The documentation for this class was generated from the following file:
- deps/commandlineparser/src/CommandLine/Core/Token.cs