FilesIsWildcardMatch Method

Returns whether a wildcarded pattern matches a file name.

Definition

Namespace: KGySoft.CoreLibraries
Assembly: KGySoft.CoreLibraries (in KGySoft.CoreLibraries.dll) Version: 7.1.0
C#
public static bool IsWildcardMatch(
	string pattern,
	string fileName
)

Parameters

pattern  String
The pattern that may contain wildcards (*, ?).
fileName  String
The file name to test.

Return Value

Boolean
, when fileName matches pattern; otherwise, .

Exceptions

ArgumentNullExceptionpattern or fileName is .

See Also