Click or drag to resize
Boolean Structure
Represents a Boolean value.

Namespace: System
Assembly: mscorlib (in mscorlib.dll) Version: 4.0.0.0
Syntax
C#
[SerializableAttribute]
public struct Boolean : IComparable, IConvertible, 
	IComparable<bool>, IEquatable<bool>

The Boolean type exposes the following members.

Methods
  NameDescription
Public methodEquals(Boolean)
Returns a value indicating whether this instance is equal to a specified Boolean object.
Public methodEquals(Object)
Returns a value indicating whether this instance is equal to a specified object.
(Overrides ValueTypeEquals(Object).)
Public methodGetHashCode
Returns the hash code for this instance.
(Overrides ValueTypeGetHashCode.)
Public methodGetType
Gets the Type of the current instance.
(Inherited from Object.)
Public methodStatic memberParse
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.
Public methodToString
Converts the value of this instance to its equivalent string representation (either "True" or "False").
(Overrides ValueTypeToString.)
Public methodToString(IFormatProvider)
Converts the value of this instance to its equivalent string representation (either "True" or "False").
Public methodStatic memberTryParse
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.
Top
Fields
  NameDescription
Public fieldStatic memberFalseString
Represents the Boolean value false as a string. This field is read-only.
Public fieldStatic memberTrueString
Represents the Boolean value true as a string. This field is read-only.
Top
See Also