Click or drag to resize
StringHelperNullOrEmptyTo Method
空字符串转换,把 null 或 "" 转换为 replaceText. e.g. NullOrEmptyTo(null,"ok")返回"ok", NullOrEmptyTo("","ok")返回"ok".

Namespace: X3Platform.Util
Assembly: X3Platform.Support (in X3Platform.Support.dll) Version: 1.0.0.0 (2.0.0.0)
Syntax
public static string NullOrEmptyTo(
	string text,
	string replaceText
)

Parameters

text
Type: SystemString

[Missing <param name="text"/> documentation for "M:X3Platform.Util.StringHelper.NullOrEmptyTo(System.String,System.String)"]

replaceText
Type: SystemString

[Missing <param name="replaceText"/> documentation for "M:X3Platform.Util.StringHelper.NullOrEmptyTo(System.String,System.String)"]

Return Value

Type: String

[Missing <returns> documentation for "M:X3Platform.Util.StringHelper.NullOrEmptyTo(System.String,System.String)"]

See Also