次の方法で共有


StringExtensions.IsEmpty(String) メソッド

定義

文字列値が null か空かを確認します。

public static bool IsEmpty(this string value);
static member IsEmpty : string -> bool
<Extension()>
Public Function IsEmpty (value As String) As Boolean

パラメーター

value
String

テストする文字列値。

戻り値

が null の場合、または長さ 0 の文字列 ("") の場合 value は true。それ以外の場合は false。

適用対象