Skip to content

Struct CBool

Namespace: Apogee.Interop
Assembly: Apogee.Interop.dll

A C bool (one byte). Unlike it is blittable, so calls need no marshalling.

[SuppressMessage("Naming", "CA1716:Identifiers should not match keywords", Justification = "Named after C's bool; VB is not a target.")]
public readonly struct CBool : IEquatable<CBool>

Implements

IEquatable<CBool>

Inherited Members

object.Equals(object?), object.Equals(object?, object?), object.GetHashCode(), object.GetType(), object.ReferenceEquals(object?, object?), object.ToString()

Constructors

CBool(bool)

public CBool(bool value)

Parameters

value bool

Methods

Equals(CBool)

Indicates whether the current object is equal to another object of the same type.

public bool Equals(CBool other)

Parameters

other CBool

An object to compare with this object.

Returns

bool

true if the current object is equal to the other parameter; otherwise, false.

Equals(object?)

Indicates whether this instance and a specified object are equal.

public override bool Equals(object? obj)

Parameters

obj object?

The object to compare with the current instance.

Returns

bool

true if obj and this instance are the same type and represent the same value; otherwise, false.

GetHashCode()

Returns the hash code for this instance.

public override int GetHashCode()

Returns

int

A 32-bit signed integer that is the hash code for this instance.

ToString()

Returns the fully qualified type name of this instance.

public override string ToString()

Returns

string

The fully qualified type name.

Operators

operator ==(CBool, CBool)

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

Parameters

left CBool

right CBool

Returns

bool

implicit operator bool(CBool)

public static implicit operator bool(CBool value)

Parameters

value CBool

Returns

bool

implicit operator CBool(bool)

public static implicit operator CBool(bool value)

Parameters

value bool

Returns

CBool

operator !=(CBool, CBool)

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

Parameters

left CBool

right CBool

Returns

bool