Struct PrimitiveValueType
Assembly: WaaS.Core.dll
public readonly struct PrimitiveValueType : IPrimitiveValueType, IDespecializedValueType, IValueType, IType, ISortedExportable, ISorted, IValueTypeDefinition, ITypeDefinition, IUnresolved<IType>, IUnresolvedValueType, IUnresolved<IValueType>, IEquatable<PrimitiveValueType>
Implements:
Expand
WaaS.ComponentModel.Runtime.IPrimitiveValueType, WaaS.ComponentModel.Runtime.IDespecializedValueType, WaaS.ComponentModel.Runtime.IValueType, WaaS.ComponentModel.Runtime.IType, WaaS.ComponentModel.Runtime.ISortedExportable, WaaS.ComponentModel.Runtime.ISorted, WaaS.ComponentModel.Models.IValueTypeDefinition, WaaS.ComponentModel.Models.ITypeDefinition, WaaS.ComponentModel.Models.IUnresolved<T>, WaaS.ComponentModel.Models.IUnresolvedValueType, WaaS.ComponentModel.Models.IUnresolved<T>, System.IEquatable<WaaS.ComponentModel.Models.PrimitiveValueType>
Properties
Kind
View Source
public PrimitiveValueTypeKind Kind { get; init; }
AlignmentRank
View Source
public byte AlignmentRank { get; }
ElementSize
View Source
public ushort ElementSize { get; }
FlattenedCount
View Source
public uint FlattenedCount { get; }
Methods
GetBoxed(PrimitiveValueTypeKind)
View Source
public static IPrimitiveValueType GetBoxed(PrimitiveValueTypeKind kind)
Returns
WaaS.ComponentModel.Runtime.IPrimitiveValueType
Parameters
Type | Name |
---|---|
WaaS.ComponentModel.Runtime.PrimitiveValueTypeKind | kind |
Equals(PrimitiveValueType)
Indicates whether the current object is equal to another object of the same type.
View Source
public bool Equals(PrimitiveValueType other)
Returns
System.Boolean
: true if the current object is equal to the <code class="paramref">other</code> parameter; otherwise, false.
Parameters
Type | Name | Description |
---|---|---|
WaaS.ComponentModel.Models.PrimitiveValueType | other | An object to compare with this object. |
Equals(object?)
Indicates whether this instance and a specified object are equal.
View Source
public override bool Equals(object? obj)
Returns
System.Boolean
: true if <code class="paramref">obj</code> and this instance are the same type and represent the same value; otherwise, false.
Parameters
Type | Name | Description |
---|---|---|
System.Object | obj | The object to compare with the current instance. |
GetHashCode()
Returns the hash code for this instance.
View Source
public override int GetHashCode()
Returns
System.Int32
: A 32-bit signed integer that is the hash code for this instance.### ValidateEquals(IType)
View Source
public bool ValidateEquals(IType other)
Returns
System.Boolean
Parameters
Type | Name |
---|---|
WaaS.ComponentModel.Runtime.IType | other |
Despecialize()
View Source
public IDespecializedValueType Despecialize()
Returns
WaaS.ComponentModel.Runtime.IDespecializedValueType
Flatten(Span<ValueType>)
View Source
public void Flatten(Span<ValueType> dest)
Parameters
Type | Name |
---|---|
System.Span<WaaS.ValueType> | dest |
Implements
- WaaS.ComponentModel.Runtime.IPrimitiveValueType
- WaaS.ComponentModel.Runtime.IDespecializedValueType
- WaaS.ComponentModel.Runtime.IValueType
- WaaS.ComponentModel.Runtime.IType
- WaaS.ComponentModel.Runtime.ISortedExportable
- WaaS.ComponentModel.Runtime.ISorted
- WaaS.ComponentModel.Models.IValueTypeDefinition
- WaaS.ComponentModel.Models.ITypeDefinition
- WaaS.ComponentModel.Models.IUnresolved<T>
- WaaS.ComponentModel.Models.IUnresolvedValueType
- WaaS.ComponentModel.Models.IUnresolved<T>
System.IEquatable<WaaS.ComponentModel.Models.PrimitiveValueType>