public override bool IsMatch(Currency item, FilterLiteral filterToken) { if (filterToken == null) { return(true); } else { return(filterToken.MatchSubstring(item.Name) || filterToken.MatchSubstring(item.Symbol) || filterToken.MatchDecimal(item.Ratio) || filterToken.MatchDecimal(item.LastRatio)); } }
public override bool IsMatch(Security item, FilterLiteral filter) { if (filter == null) { return(true); } else { return(filter.MatchSubstring(item.CuspId) || filter.MatchSubstring(item.Name) || filter.MatchSubstring(item.Symbol) || filter.MatchDecimal(item.Price)); } }