Struct CBool¶
Namespace: Apogee.Interop
Assembly: Apogee.Interop.dll
A C bool (one byte). Unlike
[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¶
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¶
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¶
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¶
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¶
The fully qualified type name.
Operators¶
operator ==(CBool, CBool)¶
public static bool operator ==(CBool left, CBool right)
Parameters¶
left CBool
right CBool
Returns¶
implicit operator bool(CBool)¶
public static implicit operator bool(CBool value)
Parameters¶
value CBool
Returns¶
implicit operator CBool(bool)¶
public static implicit operator CBool(bool value)
Parameters¶
value bool
Returns¶
operator !=(CBool, CBool)¶
public static bool operator !=(CBool left, CBool right)
Parameters¶
left CBool
right CBool