Table of Contents

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

result int

Output int value (输出 int 值).

args string[]

The command args (命令行参数).

prefix string

The prefix (前缀).

defaultValue int

Default value (默认值).

Returns

bool

true if s was converted successfully; otherwise, false (转换成功时为 true; 否则为 false).