[Serializable] |
This value type implements interfaces IConvertible and IComparable. Use the Convert class for conversions instead of this type's explicit interface member implementation of IConvertible.
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. |
CompareTo | Compares this instance to a specified object and returns an indication of their relative values. |
Equals | Overridden: Returns a value indicating whether this instance is equal to a specified object. |
GetHashCode | Overridden: Returns the hash code for this instance. |
GetType (inherited from System.Object) |
See base class member description: System.Object.GetType Derived from System.Object, the primary base class for all objects. |
GetTypeCode | Returns the TypeCode for value type Boolean. |
Parse | Converts the specified string representation of a logical value to its Boolean equivalent. |
ToString | Overloaded:ToString() Overridden: Converts the value of this instance to its equivalent string representation. |
ToString | Overloaded:ToString(IFormatProvider provider) Converts the value of this instance to its equivalent string representation. |
Finalize (inherited from System.Object) |
See base class member description: System.Object.Finalize Derived from System.Object, the primary base class for all objects. |
MemberwiseClone (inherited from System.Object) |
See base class member description: System.Object.MemberwiseClone Derived from System.Object, the primary base class for all objects. |
Hierarchy:
public static readonly string FalseString;
|
public static readonly string TrueString;
|
obj
Return Value | Condition |
---|---|
Less than zero | This instance is false and is true . |
Zero | This instance and are equal (either both are true or both are false ). |
Greater than zero | This instance is true and obj is false. -or- obj is null. |
Exception Type | Condition |
---|---|
ArgumentException | obj is not a Boolean or null. |
This method is implemented to support the IComparable interface.
obj
~Boolean(); |
public override int GetHashCode(); |
public Type GetType(); |
public TypeCode GetTypeCode(); |
protected object MemberwiseClone(); |
value
Exception Type | Condition |
---|---|
ArgumentNullException | value is null. |
FormatException | value is not equivalent to Boolean.TrueString or Boolean.FalseString. |
public override string ToString(); |
public string ToString( |
provider