Method ApplyGeneralFormat
ApplyGeneralFormat(string, string?, CultureInfo)
Applies a * general format to a result. Formatting-only switches
(MERGEFORMAT, CHARFORMAT) return the value unchanged — they direct how
the result runs are formatted, which is the updater's job, not a text transform.
public static string ApplyGeneralFormat(string value, string? format, CultureInfo culture)
Parameters
valuestringThe result text.
formatstringThe switch argument, or null.
cultureCultureInfoThe formatting culture.
Returns
- string
The transformed text.
Exceptions
- ArgumentNullException
valueorcultureis null.