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 .

System.Object
   PathMatcher

[Visual Basic]
Public NotInheritable Class PathMatcher
[C#]
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.

Remarks

Any (back)slashes are converted to forward slashes.

Example

// 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");

Requirements

Namespace: Spring.Util

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

See Also

PathMatcher Members | Spring.Util Namespace