Click or drag to resize

ConsoleWordHighlightingRuleGetWordsForHighlighting Method

Scans the haystack for words that should be highlighted.

Namespace:  NLog.Targets
Assembly:  NLog (in NLog.dll) Version: 6.0.0+cfb73701cda54e2410b006f649f072e90daef707
Syntax
protected virtual IEnumerable<KeyValuePair<int, int>>? GetWordsForHighlighting(
	string haystack
)

Parameters

haystack
Type: SystemString

Return Value

Type: IEnumerableKeyValuePairInt32, Int32
List of words with start-position (Key) and word-length (Value)
See Also