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

NLog.Conditions.ConditionMethods

public static class ConditionMethods
A bunch of utility methods (mostly predicates) which can be used in condition expressions. Partially inspired by XPath 1.0.
public static bool Contains(string haystack, string needle, bool ignoreCase = true)

Gets or sets a value indicating whether the second string is a substring of the first one.

public static bool EndsWith(string haystack, string needle, bool ignoreCase = true)

Gets or sets a value indicating whether the second string is a suffix of the first one.

public static bool Equals2(object firstValue, object secondValue)

Compares two values for equality.

public static bool Equals2(string firstValue, string secondValue, bool ignoreCase = false)

Compares two strings for equality.

public static int Length(string text)

Returns the length of a string.

public static bool StartsWith(string haystack, string needle, bool ignoreCase = true)

Gets or sets a value indicating whether the second string is a prefix of the first one.