public bool MatchFile(string fileFullName) { if (MatchTypes == null) { return(true); } string extend = Path.GetExtension(fileFullName).Trim('.').ToLower(); return(MatchTypes.Contains(extend)); }
public List <MatchedCustomer> MatchCustomers(CustomerMatchParameter customerMatchParameter) { List <MatchedCustomer> customerIds = null; // Known specific match type which is not listed in the list of MatchTypes for which default // matching rules should be applied if (MatchTypes.Contains(customerMatchParameter.MatchType) && !MatchTypesOverrideMatchRules.Contains(customerMatchParameter.MatchType) ) { customerIds = MatchWithSpecifiedMatchType(customerMatchParameter); } else // Unknown match type - let the Db routines decide { customerIds = MatchWithDefaultMatchTypeRules(customerMatchParameter); } return(customerIds); }