Class VBBooleanValue
A VBTypedValue representing a runtime value of the VBBooleanType data type.
public sealed record VBBooleanValue : VBTypedValue, IEquatable<VBRuntimeEntity>, IEquatable<VBTypedValue>, IVBTypedValue<VBBooleanValue, bool>, IEquatable<IVBTypedValue<VBBooleanValue, bool>>, IEquatable<VBBooleanValue>
- Inheritance
-
VBBooleanValue
- Implements
- Inherited Members
Constructors
VBBooleanValue(Symbol)
A VBTypedValue representing a runtime value of the VBBooleanType data type.
public VBBooleanValue(Symbol Symbol)
Parameters
Properties
BoxedValue
Gets the boxed (object) underlying managed value.
public override object BoxedValue { get; }
Property Value
Remarks
👉 This member is provided as a non-generic convenience for contexts where the type is unknown.
Use the generic ITypedValue<T> whenever possible instead.
False
public static VBBooleanValue False { get; }
Property Value
Size
The allocated size (in bytes) of this value.
public override int Size { get; }
Property Value
Symbol
The Symbol associated with this value.
public Symbol Symbol { get; init; }
Property Value
True
public static VBBooleanValue True { get; }
Property Value
Value
Gets the underlying managed value corresponding to this typed value.
public bool Value { get; init; }
Property Value
Methods
Equals(IVBTypedValue<VBBooleanValue, bool>?)
Indicates whether the current object is equal to another object of the same type.
public bool Equals(IVBTypedValue<VBBooleanValue, bool>? other)
Parameters
otherIVBTypedValue<VBBooleanValue, bool>An object to compare with this object.
Returns
GetHashCode()
Serves as the default hash function.
public override int GetHashCode()
Returns
- int
A hash code for the current object.
ToString()
Returns a string that represents the current object.
public override string ToString()
Returns
- string
A string that represents the current object.
WithValue(bool)
public VBBooleanValue WithValue(bool value)
Parameters
valuebool