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
stringSource string(源字符串).
key
stringReturns the key(返回键名)
defaultValue
intDefault value (默认值).
separator
stringThe separator (分隔符). Default value is KeyValueSeparator.
Returns
- int
Returns the value (返回值).