Boolean Members
.NET Framework 2.0
Represents a Boolean value.
The following tables list the members exposed by the Boolean type.
| Name | Description | |
|---|---|---|
| FalseString | Represents the Boolean value false as a string. This field is read-only. |
| TrueString | Represents the Boolean value true as a string. This field is read-only. |
| Name | Description | |
|---|---|---|
| CompareTo | Overloaded. Compares this instance to a specified object or Boolean and returns an indication of their relative values. |
| Equals | Overloaded. Returns a value indicating whether this instance is equal to a specified object or Boolean. |
| GetHashCode | Overridden. Returns the hash code for this instance. |
| GetType | Gets the Type of the current instance. (Inherited from Object.) |
| GetTypeCode | Returns the TypeCode for value type Boolean. |
| Parse | Converts the specified string representation of a logical value to its Boolean equivalent. |
| ReferenceEquals | Determines whether the specified Object instances are the same instance. (Inherited from Object.) |
| ToString | Overloaded. Overridden. Converts the value of this instance to its equivalent string representation. |
| TryParse | Converts the specified string representation of a logical value to its Boolean equivalent. A return value indicates whether the conversion succeeded or failed. |
| Name | Description | |
|---|---|---|
| System.IConvertible.ToBoolean | Returns the value of this instance of Boolean. |
| System.IConvertible.ToByte | Returns a byte with a value equivalent to either true or false, depending on the value of this instance of Boolean. |
| System.IConvertible.ToChar | Note Boolean objects cannot be converted to char. This method always throws InvalidCastException. |
| System.IConvertible.ToDateTime | Note This conversion is not supported. Attempting to do so throws an InvalidCastException. |
| System.IConvertible.ToDecimal | Note This conversion is not supported. Attempting to do so throws an InvalidCastException. |
| System.IConvertible.ToDouble | Note This conversion is not supported. Attempting to do so throws an InvalidCastException. |
| System.IConvertible.ToInt16 | Converts this instance of Boolean to an Int16. |
| System.IConvertible.ToInt32 | Converts this instance of Boolean to an Int32. |
| System.IConvertible.ToInt64 | Converts this instance of Boolean to Int64. |
| System.IConvertible.ToSByte | Converts this instance of Boolean to SByte. |
| System.IConvertible.ToSingle | Note This conversion is not supported. Attempting to do so throws an InvalidCastException. |
| System.IConvertible.ToType | Converts this instance of Boolean to an object of the specified Type. |
| System.IConvertible.ToUInt16 | Returns a 16-bit unsigned integer representing the value of this instance of Boolean. |
| System.IConvertible.ToUInt32 | Returns a 32-bit unsigned integer representing the value of this instance of Boolean. |
| System.IConvertible.ToUInt64 | Returns a 64-bit unsigned integer representing the value of this instance of Boolean. |