点击或拖拽改变大小

HslExtensionToStringArrayT 方法 (String, FuncString, T)

将字符串数组转换为实际的数据数组。例如字符串格式[1,2,3,4,5],可以转成实际的数组对象
Converts a string array into an actual data array. For example, the string format [1,2,3,4,5] can be converted into an actual array object

命名空间:  HslCommunication
程序集:  HslCommunication (在 HslCommunication.dll 中) 版本:11.8.2.0 (11.8.2.0)
语法
public static T[] ToStringArray<T>(
	this string value,
	Func<string, T> selector
)

参数

value
类型:SystemString
字符串数据
selector
类型:SystemFuncString, T
转换方法

类型参数

T
类型对象

返回值

类型:T
实际的数组

备注

在 Visual Basic 和 C# 中,这个方法可以当成为类型 String 的实例方法来调用。在采用实例方法语法调用这个方法时,请省略第一个参数。请参考 扩展方法 (Visual Basic)扩展方法 (C# 编程指南) 获取更多信息。
参见