Method TryParseArgsByPrefix
- Namespace
- Zyl.VectorTraits
- Assembly
- VectorTraits.dll
TryParseArgsByPrefix(out int, string[], string, int)
Try parse command args by prefix (根据前缀解析命令行参数).
public static bool TryParseArgsByPrefix(out int result, string[] args, string prefix, int defaultValue)
Parameters
resultintOutput int value (输出 int 值).
argsstring[]The command args (命令行参数).
prefixstringThe prefix (前缀).
defaultValueintDefault value (默认值).
Returns
- bool
true if s was converted successfully; otherwise, false (转换成功时为 true; 否则为 false).