ExtensionMethodsConvertToBool Method
Namespace: Centralpoint.WebAssembly: Centralpoint.Web (in Centralpoint.Web.dll) Version: 1.0.0.0 (1.0.0.0)
public static bool ConvertToBool(
this string s,
bool defaultTo = false
)
<ExtensionAttribute>
Public Shared Function ConvertToBool (
s As String,
Optional defaultTo As Boolean = false
) As Boolean
- s String
-
- defaultTo Boolean (Optional)
-
BooleanIn Visual Basic and C#, you can call this method as an instance method on any object of type
String. When you use instance method syntax to call this method, omit the first parameter. For more information, see
Extension Methods (Visual Basic) or
Extension Methods (C# Programming Guide).