[]
        
(Showing Draft Content)

GrapeCity.Documents.DX.Bool

Struct Bool

Namespace
GrapeCity.Documents.DX
Assembly
GcDocs.DX.Windows.dll

A boolean value stored on 4 bytes (instead of 1 in .NET).

public struct Bool : IEquatable<Bool>
Implements
System.IEquatable<T><Bool>
Inherited Members
object.Equals(object, object)
object.ReferenceEquals(object, object)
object.GetType()

Constructors

Bool(bool)

Initializes a new instance of the Bool class.

public Bool(bool boolValue)

Parameters

boolValue bool

if set to true [bool value].

Fields

False

The boolean False value.

public static readonly Bool False

Field Value

Bool

SizeInBytes

The size of the Bool type, in bytes.

public const int SizeInBytes = 4

Field Value

int

True

The boolean True value.

public static readonly Bool True

Field Value

Bool

Properties

Value

Gets or sets the boolean value.

public bool Value { get; set; }

Property Value

bool

Methods

Equals(Bool)

Indicates whether this instance and a specified object are equal.

public bool Equals(Bool other)

Parameters

other Bool

Returns

bool

Equals(object)

Indicates whether this instance and a specified object are equal.

public override bool Equals(object obj)

Parameters

obj object

Returns

bool

GetHashCode()

Returns a hash code for this instance.

public override int GetHashCode()

Returns

int

ToString()

Returns a string that represents the current object.

public override string ToString()

Returns

string

Operators

operator ==(Bool, Bool)

Determines if the specified values are equal.

public static bool operator ==(Bool left, Bool right)

Parameters

left Bool
right Bool

Returns

bool

implicit operator bool(Bool)

Performs an explicit conversion from Bool to bool.

public static implicit operator bool(Bool value)

Parameters

value Bool

The value.

Returns

bool

The result of the conversion.

implicit operator Bool(bool)

Performs an explicit conversion from bool to Bool.

public static implicit operator Bool(bool boolValue)

Parameters

boolValue bool

The value.

Returns

Bool

The result of the conversion.

operator !=(Bool, Bool)

Determines if the specified values are not equal.

public static bool operator !=(Bool left, Bool right)

Parameters

left Bool
right Bool

Returns

bool