ComponentValueType Class

A value type of the component model. The value types are structural: two value types are equal when they have the same structure, except the handles, whose resource types are compared by identity.

public abstract class ComponentValueType : ComponentType, IEquatable<ComponentValueType>
Inheritance
ComponentType ComponentValueType
Implements

Properties

NameDescription
BoolThe bool type.
CharThe char type.
ErrorContextThe error-context type.
F32The f32 type.
F64The f64 type.
KindGets the kind of the type.
S16The s16 type.
S32The s32 type.
S64The s64 type.
S8The s8 type.
StringThe string type.
U16The u16 type.
U32The u32 type.
U64The u64 type.
U8The u8 type.

The bool type.

public static ComponentPrimitiveType Bool { get; }

The char type.

public static ComponentPrimitiveType Char { get; }

ErrorContext

ComponentTypes.cs

The error-context type.

public static ComponentPrimitiveType ErrorContext { get; }

The f32 type.

public static ComponentPrimitiveType F32 { get; }

The f64 type.

public static ComponentPrimitiveType F64 { get; }

Gets the kind of the type.

public ComponentValueTypeKind Kind { get; }

The s16 type.

public static ComponentPrimitiveType S16 { get; }

The s32 type.

public static ComponentPrimitiveType S32 { get; }

The s64 type.

public static ComponentPrimitiveType S64 { get; }

The s8 type.

public static ComponentPrimitiveType S8 { get; }

The string type.

public static ComponentPrimitiveType String { get; }

The u16 type.

public static ComponentPrimitiveType U16 { get; }

The u32 type.

public static ComponentPrimitiveType U32 { get; }

The u64 type.

public static ComponentPrimitiveType U64 { get; }

The u8 type.

public static ComponentPrimitiveType U8 { get; }

Methods

NameDescription
Equals(ComponentValueType?)Indicates whether the current object is equal to another object of the same type.
Equals(object?)Determines whether the specified object is equal to the current object.
GetHashCode()Serves as the default hash function.
ToString()Returns the type in the text format, such as (list u8).

Equals overloads

Equals(ComponentValueType?)

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

public abstract bool Equals(ComponentValueType? other)
Parameters
other ComponentValueType?
An object to compare with this object.
Returns

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

Equals(object?)

ComponentTypes.cs

Determines whether the specified object is equal to the current object.

public sealed override bool Equals(object? obj)
Parameters
obj object?
The object to compare with the current object.
Returns

bool true if the specified object is equal to the current object; otherwise, false.

GetHashCode()

Serves as the default hash function.

public abstract override int GetHashCode()

Returns

int A hash code for the current object.

Returns the type in the text format, such as (list u8).

public sealed override string ToString()

Returns

string