Table of Contents

Struct TypeId

Namespace
MarymoorStudios.Core.Serialization.System
Assembly
MarymoorStudios.Core.Serialization.dll
public readonly struct TypeId : IEquatable<TypeId>
Implements
Inherited Members

Constructors

TypeId(Type, params Span<TypeId>)

public TypeId(Type t, params Span<TypeId> genericArguments)

Parameters

t Type
genericArguments Span<TypeId>

TypeId(ulong, TypeId[])

public TypeId(ulong id, TypeId[] genericArguments)

Parameters

id ulong
genericArguments TypeId[]

Properties

GenericArguments

The generic arguments of the type.

public TypeId[] GenericArguments { get; }

Property Value

TypeId[]

Invalid

The invalid id.

public static TypeId Invalid { get; }

Property Value

TypeId

IsValid

True if the TypeId is not Invalid.

public bool IsValid { get; }

Property Value

bool

Methods

Equals(TypeId)

Value-based equality.

public bool Equals(TypeId other)

Parameters

other TypeId

Returns

bool

Equals(object?)

public override bool Equals(object? obj)

Parameters

obj object

Returns

bool

GetHashCode()

public override int GetHashCode()

Returns

int

ToString()

public override string ToString()

Returns

string

Operators

operator ==(TypeId, TypeId)

Value-based equality.

public static bool operator ==(TypeId left, TypeId right)

Parameters

left TypeId
right TypeId

Returns

bool

operator !=(TypeId, TypeId)

Value-based equality.

public static bool operator !=(TypeId left, TypeId right)

Parameters

left TypeId
right TypeId

Returns

bool