[]
A boolean value stored on 4 bytes (instead of 1 in .NET).
public struct Bool : IEquatable<Bool>
Initializes a new instance of the Bool class.
public Bool(bool boolValue)
boolValue
boolif set to true
[bool value].
The boolean False value.
public static readonly Bool False
The size of the Bool type, in bytes.
public const int SizeInBytes = 4
The boolean True value.
public static readonly Bool True
Gets or sets the boolean value.
public bool Value { get; set; }
Indicates whether this instance and a specified object are equal.
public bool Equals(Bool other)
other
BoolIndicates whether this instance and a specified object are equal.
public override bool Equals(object obj)
obj
objectReturns a hash code for this instance.
public override int GetHashCode()
Returns a string that represents the current object.
public override string ToString()
Determines if the specified values are equal.
public static bool operator ==(Bool left, Bool right)
Performs an explicit conversion from Bool to bool.
public static implicit operator bool(Bool value)
value
BoolThe value.
The result of the conversion.
Performs an explicit conversion from bool to Bool.
public static implicit operator Bool(bool boolValue)
boolValue
boolThe value.
The result of the conversion.
Determines if the specified values are not equal.
public static bool operator !=(Bool left, Bool right)