<PackageReference Include="NLog" Version="6.0.7" />

NLog.Filters.WhenEqualFilter

Matches when the calculated layout is equal to the specified substring. This filter is deprecated in favor of <when /> which is based on conditions.
public string CompareTo { get; set; }

Gets or sets a string to compare the layout to.

public bool IgnoreCase { get; set; }

Gets or sets a value indicating whether to ignore case when comparing strings.

public WhenEqualFilter()