Class BooleanUtilities
Provides methods for working with a logical type.
Inheritance
System.Object
BooleanUtilities
Inherited Members
System.Object.ToString()
System.Object.Equals(System.Object)
System.Object.Equals(System.Object, System.Object)
System.Object.ReferenceEquals(System.Object, System.Object)
System.Object.GetHashCode()
System.Object.GetType()
System.Object.MemberwiseClone()
Namespace: Terrasoft.Common
Assembly: Terrasoft.Common.dll
Syntax
public static class BooleanUtilities
Methods
ConvertToBoolean(String)
Converts a string value of source
to a langword_csharp_bool type.
Declaration
public static bool ConvertToBoolean(string source)
Parameters
Type | Name | Description |
---|---|---|
System.String | source | The value to be converted. |
Returns
Type | Description |
---|---|
System.Boolean | true, if |
ToJavaScriptBoolean(Boolean)
Converts the value of source
to the equivalent value in JavaScript.
Declaration
public static string ToJavaScriptBoolean(this bool source)
Parameters
Type | Name | Description |
---|---|---|
System.Boolean | source | The value to be converted. |
Returns
Type | Description |
---|---|
System.String | The equivalent value of |