Match() public method

Backward Match
public Match ( String s ) : MatchResult
s String address string[]
return MatchResult
Beispiel #1
0
        private static void Match()
        {
            AddrSet addrset = AddrSet.GetInstance();

            //Match
            MatchMachine m = new MatchMachine(addrset);

            MatchResult result = m.Match(new string[] { "B" });

            MatchHelper.rwLockDashboard(addrset);
        }
Beispiel #2
0
        public void Match()
        {
            //start
            AddrSet addrset = AddrSet.GetInstance();

            //Match
            MatchMachine m = new MatchMachine(addrset);

            // Custom the MatchRule
            //m.SetMatchRule(rule);

            MatchResult result = m.Match(new string[] { "B" });

            MatchHelper.PrintResult(result);

            //close
            //addrset.Dump();
        }