Struct KernelId
- Namespace
- Orleans.GpuBridge.Abstractions
- Assembly
- Orleans.GpuBridge.Abstractions.dll
Represents a unique kernel identifier
[GenerateSerializer]
public readonly record struct KernelId : IEquatable<KernelId>
- Implements
- Inherited Members
Constructors
KernelId(string)
Represents a unique kernel identifier
public KernelId(string Value)
Parameters
Valuestring
Properties
Value
[Id(0)]
public string Value { get; init; }
Property Value
Methods
Parse(string)
Parses a string into a KernelId.
public static KernelId Parse(string s)
Parameters
sstringThe string to parse.
Returns
Exceptions
- ArgumentException
Thrown when the string is null or whitespace.
ToString()
Returns the string representation of the kernel ID.
public override string ToString()
Returns
- string
The kernel ID value.
TryParse(string?, out KernelId)
Attempts to parse a string into a KernelId.
public static bool TryParse(string? s, out KernelId result)
Parameters
Returns
- bool
True if parsing succeeded; otherwise, false.
Operators
implicit operator string(KernelId)
Implicitly converts a KernelId to its string value.
public static implicit operator string(KernelId id)
Parameters
idKernelIdThe kernel ID to convert.