Table of Contents

Method SplitKeyValueToInt

Namespace
Zyl.VectorTraits
Assembly
VectorTraits.dll

SplitKeyValueToInt(string, out string, int, string?)

Splitting key-value pairs and converting values to integer (拆分键值对, 并将值转换为整数).

public static int SplitKeyValueToInt(string src, out string key, int defaultValue = 0, string? separator = null)

Parameters

src string

Source string(源字符串).

key string

Returns the key(返回键名)

defaultValue int

Default value (默认值).

separator string

The separator (分隔符). Default value is KeyValueSeparator.

Returns

int

Returns the value (返回值).