Boolean Structure |
Namespace: System
[SerializableAttribute] public struct Boolean : IComparable, IConvertible, IComparable<bool>, IEquatable<bool>
The Boolean type exposes the following members.
Name | Description | |
---|---|---|
Equals(Boolean) | Returns a value indicating whether this instance is equal to a specified Boolean object. | |
Equals(Object) | Returns a value indicating whether this instance is equal to a specified object. (Overrides ValueTypeEquals(Object).) | |
GetHashCode | Returns the hash code for this instance. (Overrides ValueTypeGetHashCode.) | |
GetType | Gets the Type of the current instance. (Inherited from Object.) | |
Parse | Converts the specified string representation of a logical value to its Boolean equivalent, or throws an exception if the string is not equivalent to the value of TrueString or FalseString. | |
ToString | Converts the value of this instance to its equivalent string representation (either "True" or "False"). (Overrides ValueTypeToString.) | |
ToString(IFormatProvider) | Converts the value of this instance to its equivalent string representation (either "True" or "False"). | |
TryParse | Tries to convert the specified string representation of a logical value to its Boolean equivalent. A return value indicates whether the conversion succeeded or failed. |
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. |