Click or drag to resize

ConditionMethodsEquals2 Method (String, String, Boolean)

Compares two strings for equality.

Namespace:  NLog.Conditions
Assembly:  NLog (in NLog.dll) Version: 6.0.0+cfb73701cda54e2410b006f649f072e90daef707
Syntax
public static bool Equals2(
	string? firstValue,
	string? secondValue,
	bool ignoreCase = false
)

Parameters

firstValue
Type: SystemString
The first string.
secondValue
Type: SystemString
The second string.
ignoreCase (Optional)
Type: SystemBoolean
Optional. If true, case is ignored; if false (default), case is significant.

Return Value

Type: Boolean
true when two strings are equal, false otherwise.
See Also