Table of Contents

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

Value string

Properties

Value

[Id(0)]
public string Value { get; init; }

Property Value

string

Methods

Parse(string)

Parses a string into a KernelId.

public static KernelId Parse(string s)

Parameters

s string

The string to parse.

Returns

KernelId

A new KernelId instance.

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

s string

The string to parse.

result KernelId

The parsed KernelId if successful.

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

id KernelId

The kernel ID to convert.

Returns

string