点击或拖拽改变大小

HslExtensionToStringArrayT 方法 (String)

将字符串数组转换为实际的数据数组。支持byte,sbyte,bool,short,ushort,int,uint,long,ulong,float,double,使用默认的十进制,例如字符串格式[1,2,3,4,5],可以转成实际的数组对象
Converts a string array into an actual data array. Support byte, sbyte, bool, short, ushort, int, uint, long, ulong, float, double, use the default decimal, such as the string format [1,2,3,4,5], which 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
)

参数

value
类型:SystemString
字符串数据

类型参数

T
类型对象

返回值

类型:T
实际的数组

备注

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