Struct SaveSlotId
Identifies a single game-save slot by its zero-based index.
Immutable value object that supports equality comparison and hashing.
Assembly: Serenity.GameSave.Domain.dll
Syntax
public readonly struct SaveSlotId : IEquatable<SaveSlotId>
Constructors
SaveSlotId(int)
Declaration
public SaveSlotId(int value)
Parameters
| Type |
Name |
Description |
| int |
value |
The zero-based slot index. Cannot be negative.
|
Exceptions
Fields
Value
The zero-based slot index.
Declaration
public readonly int Value
Field Value
Methods
Equals(SaveSlotId)
Declaration
public bool Equals(SaveSlotId other)
Parameters
Returns
Equals(object)
Declaration
public override bool Equals(object obj)
Parameters
| Type |
Name |
Description |
| object |
obj |
|
Returns
Overrides
GetHashCode()
Declaration
public override int GetHashCode()
Returns
Overrides
ToString()
Declaration
public override string ToString()
Returns
Overrides
Operators
operator ==(SaveSlotId, SaveSlotId)
Declaration
public static bool operator ==(SaveSlotId left, SaveSlotId right)
Parameters
Returns
operator !=(SaveSlotId, SaveSlotId)
Declaration
public static bool operator !=(SaveSlotId left, SaveSlotId right)
Parameters
Returns
Implements