Skip to main content

Struct PrimitiveValueType

Assembly: WaaS.Core.dll​
Declaration
public readonly struct PrimitiveValueType : IPrimitiveValueType, IDespecializedValueType, IValueType, IType, ISortedExportable, ISorted, IValueTypeDefinition, ITypeDefinition, IUnresolved<IType>, IUnresolvedValueType, IUnresolved<IValueType>, IEquatable<PrimitiveValueType>

Implements:

Expand

Properties​

Kind​

View Source​
Declaration
public PrimitiveValueTypeKind Kind { get; init; }

AlignmentRank​

View Source​
Declaration
public byte AlignmentRank { get; }

ElementSize​

View Source​
Declaration
public ushort ElementSize { get; }

FlattenedCount​

View Source​
Declaration
public uint FlattenedCount { get; }

Methods​

GetBoxed(PrimitiveValueTypeKind)​

View Source​
Declaration
public static IPrimitiveValueType GetBoxed(PrimitiveValueTypeKind kind)
Returns​

WaaS.ComponentModel.Runtime.IPrimitiveValueType

Parameters​
TypeName
WaaS.ComponentModel.Runtime.PrimitiveValueTypeKindkind

Equals(PrimitiveValueType)​

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

View Source​
Declaration
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​
TypeNameDescription
WaaS.ComponentModel.Models.PrimitiveValueTypeotherAn object to compare with this object.

Equals(object?)​

Indicates whether this instance and a specified object are equal.

View Source​
Declaration
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​
TypeNameDescription
System.ObjectobjThe object to compare with the current instance.

GetHashCode()​

Returns the hash code for this instance.

View Source​
Declaration
public override int GetHashCode()
Returns​

System.Int32: A 32-bit signed integer that is the hash code for this instance.### ValidateEquals(IType)

View Source​
Declaration
public bool ValidateEquals(IType other)
Returns​

System.Boolean

Parameters​
TypeName
WaaS.ComponentModel.Runtime.ITypeother

Despecialize()​

View Source​
Declaration
public IDespecializedValueType Despecialize()
Returns​

WaaS.ComponentModel.Runtime.IDespecializedValueType

Flatten(Span<ValueType>)​

View Source​
Declaration
public void Flatten(Span<ValueType> dest)
Parameters​
TypeName
System.Span<WaaS.ValueType>dest

Implements​