点击或拖拽改变大小

HslExtensionSplitDot 方法

根据英文小数点进行切割字符串,去除空白的字符
Cut the string according to the English decimal point and remove the blank characters

命名空间:  HslCommunication
程序集:  HslCommunication (在 HslCommunication.dll 中) 版本:11.8.2.0 (11.8.2.0)
语法
public static string[] SplitDot(
	this string str
)

参数

str
类型:SystemString
字符串本身

返回值

类型:String
切割好的字符串数组,例如输入 "100.5",返回 "100", "5"

备注

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