Table of Contents

TextFilterResult Struct

Definition

Namespace
Bodu.Text.Filtering
Assembly
Bodu.Text.Filtering.dll
Package
Bodu.Text.Filtering 1.0.0
Source
TextFilterResult.cs

Represents the outcome of evaluating a single value against a TextFilter: the decision reached and the pattern that decided it, if any.

public readonly struct TextFilterResult
Inherited Members
Extension Methods

Properties

Decision

Gets the decision reached for the value.

public TextFilterDecision Decision { get; }

Property Value

TextFilterDecision

IsMatch

Gets a value indicating whether the value was accepted by the filter.

public bool IsMatch { get; }

Property Value

bool

true when Decision is IncludedByDefault or Included; otherwise false.

Pattern

Gets the pattern that decided the outcome.

public TextFilterPattern? Pattern { get; }

Property Value

TextFilterPattern

The deciding pattern, or null when the decision is IncludedByDefault or NotIncluded. In AnyMatch mode, when several patterns could have matched, the reported pattern is one of them (the cheapest to evaluate), not necessarily the first declared; in LastMatchWins mode it is exactly the last matching rule.

Applies to

ProductVersions
.NET8, 10