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
ComponentTypeComponentValueType- Implements
Properties
| Name | Description |
|---|---|
| Bool | The bool type. |
| Char | The char type. |
| ErrorContext | The error-context type. |
| F32 | The f32 type. |
| F64 | The f64 type. |
| Kind | Gets the kind of the type. |
| S16 | The s16 type. |
| S32 | The s32 type. |
| S64 | The s64 type. |
| S8 | The s8 type. |
| String | The string type. |
| U16 | The u16 type. |
| U32 | The u32 type. |
| U64 | The u64 type. |
| U8 | The u8 type. |
ErrorContext
ComponentTypes.csString
ComponentTypes.csMethods
| Name | Description |
|---|---|
| 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
otherComponentValueType?- An object to compare with this object.
Returns
bool true if the current object is equal to the other parameter; otherwise, false.