Table of Contents

Struct SlotId

Namespace
MoonBark.GridPlacement.Core.Types
Assembly
MoonBark.GridPlacement.Core.dll

Strongly-typed identifier for slots. Prevents string typos and provides compile-time type safety.

public readonly record struct SlotId : IEquatable<SlotId>
Implements
Inherited Members

Constructors

SlotId(string)

Strongly-typed identifier for slots. Prevents string typos and provides compile-time type safety.

public SlotId(string Value)

Parameters

Value string

Properties

Value

Gets the string value of the slot ID.

public string Value { get; }

Property Value

string

Methods

FromString(string)

Creates a SlotId from a string.

public static SlotId FromString(string value)

Parameters

value string

Returns

SlotId

ToString()

Returns the string representation of the slot ID.

public override string ToString()

Returns

string

Operators

implicit operator string(SlotId)

Implicit conversion from SlotId to string.

public static implicit operator string(SlotId id)

Parameters

id SlotId

Returns

string

implicit operator SlotId(string)

Implicit conversion from string to SlotId.

public static implicit operator SlotId(string value)

Parameters

value string

Returns

SlotId