Table of Contents

Class TokenUnion

public sealed class TokenUnion : LiteRTLMNativeHandle
Inheritance
object
TokenUnion
Inherited Members

Methods

GetIds(out int[]?)

Returns the token ids from a token union.

public int GetIds(out int[]? tokenIds)

Parameters

tokenIds int[]

The token IDs.

Returns

int

0 on success, non-zero if the token union does not contain token ids.

GetString()

Returns the string value from a token union.

public string? GetString()

Returns

string

The string value, or null if the token union does not contain a string value.

GetUnionType()

Returns the type of the token union.

public TokenUnionType GetUnionType()

Returns

TokenUnionType

The type of the token union.

ReleaseUnmanagedResources()

protected override void ReleaseUnmanagedResources()