Click or drag to resize

StringComparisonExtensionsMatches Method

Matches two strings, depending on the provided kind of comparison

Namespace: Altaxo
Assembly: AltaxoCore (in AltaxoCore.dll) Version: 4.8.3618.0 (4.8.3618.0)
Syntax
C#
public static bool Matches(
	this string? value,
	string? matchString,
	StringComparisonKind kind,
	StringComparison stringComparison = StringComparison.Ordinal
)

Parameters

value  String

[Missing <param name="value"/> documentation for "M:Altaxo.StringComparisonExtensions.Matches(System.String,System.String,Altaxo.StringComparisonKind,System.StringComparison)"]

matchString  String
The match string.
kind  StringComparisonKind
The kind of comparison.
stringComparison  StringComparison  (Optional)
The details of comparison.

Return Value

Boolean
True if the strings match according to the specified kind and comparison details; otherwise, false.

Usage Note

In Visual Basic and C#, you can call this method as an instance method on any object of type String. When you use instance method syntax to call this method, omit the first parameter. For more information, see Extension Methods (Visual Basic) or Extension Methods (C# Programming Guide).
See Also