StringExtensions.IsBool(String) 方法

定義

檢查是否可以將字串轉換成布林 (true/false) 型別。

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

參數

value
String

要測試的字串值。

傳回

如果 value 可以轉換成指定的型別,則為 true,否則為 false。

適用於