Struct StageId
Stable identifier for a rail shooter stage.
Immutable value object that supports equality comparison and hashing.
Assembly: Serenity.Stage.Domain.dll
Syntax
public readonly struct StageId : IEquatable<StageId>
Constructors
StageId(string)
Creates a new StageId with the specified identifier.
Declaration
public StageId(string value)
Parameters
| Type |
Name |
Description |
| string |
value |
The unique string identifier. Cannot be null.
|
Fields
Value
The unique string identifier for this stage.
Declaration
public readonly string Value
Field Value
Properties
IsValid
Checks if this StageId has a valid, non-empty value.
Declaration
public bool IsValid { get; }
Property Value
Methods
Equals(StageId)
Declaration
public bool Equals(StageId other)
Parameters
| Type |
Name |
Description |
| StageId |
other |
|
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
NewGuid()
Creates a new StageId with an auto-generated GUID.
Declaration
public static StageId NewGuid()
Returns
ToString()
Declaration
public override string ToString()
Returns
Overrides
Operators
operator ==(StageId, StageId)
Declaration
public static bool operator ==(StageId left, StageId right)
Parameters
Returns
explicit operator StageId(string)
Declaration
public static explicit operator StageId(string value)
Parameters
| Type |
Name |
Description |
| string |
value |
|
Returns
implicit operator string(StageId)
Declaration
public static implicit operator string(StageId id)
Parameters
Returns
operator !=(StageId, StageId)
Declaration
public static bool operator !=(StageId left, StageId right)
Parameters
Returns
Implements