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
Valuestring
Properties
Value
Gets the string value of the slot ID.
public string Value { get; }
Property Value
Methods
FromString(string)
Creates a SlotId from a string.
public static SlotId FromString(string value)
Parameters
valuestring
Returns
ToString()
Returns the string representation of the slot ID.
public override string ToString()
Returns
Operators
implicit operator string(SlotId)
Implicit conversion from SlotId to string.
public static implicit operator string(SlotId id)
Parameters
idSlotId
Returns
implicit operator SlotId(string)
Implicit conversion from string to SlotId.
public static implicit operator SlotId(string value)
Parameters
valuestring