Skip to content

TokenNamingTokens

Namespace Nfty.Core.Publish in assembly Nfty.Core.

public static class TokenNamingTokens

The one mapping between TokenNaming and the words the CLI, the export dialog and the manual spell it with, so none of them can name a choice two ways.

Properties

Words

public static IReadOnlyList<string> Words { get; }

The words, in the order a picker lists them.

Methods

Spell(TokenNaming)

public static string Spell(TokenNaming naming);

The word for a naming.

Parameters

  • naming (TokenNaming) - Which naming.

Returns. padded or token-id.

Exceptions

  • ArgumentOutOfRangeException - naming is not defined.

TryParse(string?, TokenNaming)

public static bool TryParse(string? word, out TokenNaming naming);

Reads a word back. Never guesses: anything but a listed word is refused.

Parameters

  • word (string?) - The text.
  • naming (TokenNaming) - The naming, when the word is one.

Returns. Whether word named a naming.