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