constructorEventId
public EventId(Guid value)
Initializes a new instance of the `EventId` struct with a specific `Guid`.
- value: Guid
- The underlying unique identifier value.
methodCompareTo
public int CompareTo(EventId other)
Inherits documentation from base type or interface.
- other: EventId
methodCompareTo
public int CompareTo(object? obj)
Inherits documentation from base type or interface.
- obj: object?
methodFrom
public static EventId From(Guid value)
Creates an `EventId` from an existing `Guid`.
- value: Guid
- The GUID value.
Returns: A new `EventId` instance.
methodNew
public static EventId New()
Creates a new `EventId` using native time-ordered GUID Version 7 on .NET 9+, falling back to a cryptographically random GUID Version 4 (`Guid.NewGuid`) on .NET 8.
Returns: A new `EventId` instance.
methodParse
public static EventId Parse(ReadOnlySpan<char> s)
Parses a character span into an `EventId`.
- s: ReadOnlySpan<char>
- The span representation to parse.
Returns: The parsed `EventId`.
methodParse
public static EventId Parse(ReadOnlySpan<char> s, IFormatProvider? provider)
Inherits documentation from base type or interface.
- s: ReadOnlySpan<char>
- provider: IFormatProvider?
methodParse
public static EventId Parse(string s)
Parses a string into an `EventId`.
- s: string
- The string representation to parse.
Returns: The parsed `EventId`.
methodParse
public static EventId Parse(string s, IFormatProvider? provider)
Inherits documentation from base type or interface.
- s: string
- provider: IFormatProvider?
methodToString
public override string ToString()
Inherits documentation from base type or interface.
methodToString
public string ToString(string? format, IFormatProvider? formatProvider)
Inherits documentation from base type or interface.
- format: string?
- formatProvider: IFormatProvider?
methodTryFormat
public bool TryFormat(Span<byte> utf8Destination, out int bytesWritten, ReadOnlySpan<char> format = default, IFormatProvider? provider = null)
Inherits documentation from base type or interface.
- utf8Destination: Span<byte>
- bytesWritten: out int
- format: ReadOnlySpan<char>
- provider: IFormatProvider?
methodTryFormat
public bool TryFormat(Span<char> destination, out int charsWritten, ReadOnlySpan<char> format = default, IFormatProvider? provider = null)
Inherits documentation from base type or interface.
- destination: Span<char>
- charsWritten: out int
- format: ReadOnlySpan<char>
- provider: IFormatProvider?
methodTryParse
public static bool TryParse(ReadOnlySpan<char> s, IFormatProvider? provider, out EventId result)
Inherits documentation from base type or interface.
- s: ReadOnlySpan<char>
- provider: IFormatProvider?
- result: out EventId
methodTryParse
public static bool TryParse(string? s, IFormatProvider? provider, out EventId result)
Inherits documentation from base type or interface.
- s: string?
- provider: IFormatProvider?
- result: out EventId
methodexplicit operator EventId
public static explicit operator EventId(Guid identifier)
Converts a `Guid` to an `EventId`.
- identifier: Guid
- The unique identifier value.
Returns: A new `EventId` initialized with the specified value.
methodimplicit operator Guid
public static implicit operator Guid(EventId id)
Converts an `EventId` to its underlying `Guid`.
- id: EventId
- The event identifier to convert.
Returns: The underlying `Guid` value.
methodoperator <
public static bool operator <(EventId left, EventId right)
Determines whether a specified `EventId` is less than another specified `EventId`.
- left: EventId
- The first event identifier to compare.
- right: EventId
- The second event identifier to compare.
Returns: `true` if `left` is less than `right`; otherwise, `false`.
methodoperator <=
public static bool operator <=(EventId left, EventId right)
Determines whether a specified `EventId` is less than or equal to another specified `EventId`.
- left: EventId
- The first event identifier to compare.
- right: EventId
- The second event identifier to compare.
Returns: `true` if `left` is less than or equal to `right`; otherwise, `false`.
methodoperator >
public static bool operator >(EventId left, EventId right)
Determines whether a specified `EventId` is greater than another specified `EventId`.
- left: EventId
- The first event identifier to compare.
- right: EventId
- The second event identifier to compare.
Returns: `true` if `left` is greater than `right`; otherwise, `false`.
methodoperator >=
public static bool operator >=(EventId left, EventId right)
Determines whether a specified `EventId` is greater than or equal to another specified `EventId`.
- left: EventId
- The first event identifier to compare.
- right: EventId
- The second event identifier to compare.
Returns: `true` if `left` is greater than or equal to `right`; otherwise, `false`.
propertyIsEmpty
public bool IsEmpty { get; }
Gets a value indicating whether this instance is empty.
propertyValue
public Guid Value { get; }
Gets the underlying `Guid` value.
fieldEmpty
public static readonly EventId Empty
Gets the empty `EventId` instance.