Spring.NET 1.3.0 RC1 for .NET 2.0 API Reference

PathMatcher Class

Support matching of file system paths in a manner similar to that of the NAntFileSet.

For a list of all members of this type, see PathMatcher Members .


[Visual Basic]
Public NotInheritable Class PathMatcher
public sealed class PathMatcher

Thread Safety

Public static (Shared in Visual Basic) members of this type are safe for multithreaded operations. Instance members are not guaranteed to be thread-safe.


Any (back)slashes are converted to forward slashes.


// true
PathMatcher.Match("c:/*.bat", @"c:\autoexec.bat");
PathMatcher.Match("c:\fo*\*.bat", @"c:/foobar/autoexec.bat");
PathMatcher.Match("c:\fo?\*.bat", @"c:/foo/autoexec.bat");
// false
PathMatcher.Match("c:\fo?\*.bat", @"c:/fo/autoexec.bat");


Namespace: Spring.Util

Assembly: Spring.Core (in Spring.Core.dll)

See Also

PathMatcher Members | Spring.Util Namespace