Last active
November 21, 2015 12:57
-
-
Save TangChr/a500075c0b2fad02a7c0 to your computer and use it in GitHub Desktop.
C#: Match string with wildcard
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
using Microsoft.VisualBasic; | |
using Microsoft.VisualBasic.CompilerServices; | |
namespace TangChr.Tools | |
{ | |
public static class StringMatch | |
{ | |
public static bool IsWildcardMatch(string search, string source) | |
{ // Wildcard: * | |
return Operators.LikeString(source, search, CompareMethod.Text); | |
} | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment