Back to API Reference
Class

ParameterTokenExtensions

static

Keyword-matching helpers for modifier/rule parameter tokens (equality lives in StringExtensions), so parsers never hand-roll StringComparison boilerplate.

public static bool IsPrefixOf()

True when token is a non-empty case-insensitive prefix of word — so dot matches dotted. Empty never matches; use for abbreviated keywords.

public static bool AsBool()

Parses a boolean keyword by prefix (t/true/yes/on/1 → true; f/false/no/off/0 → false), preferring true on an ambiguous prefix. Unmatched → defaultValue.