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