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
TypeId(ulong, TypeId[])
public TypeId(ulong id, TypeId[] genericArguments)
Parameters
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
IsValid
True if the TypeId is not Invalid.
public bool IsValid { get; }
Property Value
Methods
Equals(TypeId)
Value-based equality.
public bool Equals(TypeId other)
Parameters
other
TypeId
Returns
Equals(object?)
public override bool Equals(object? obj)
Parameters
obj
object
Returns
GetHashCode()
public override int GetHashCode()
Returns
ToString()
public override string ToString()
Returns
Operators
operator ==(TypeId, TypeId)
Value-based equality.
public static bool operator ==(TypeId left, TypeId right)
Parameters
Returns
operator !=(TypeId, TypeId)
Value-based equality.
public static bool operator !=(TypeId left, TypeId right)