public bool Include(Difference difference) { // Is the entire rule ignored? if (_ignoreDifferences.Contains(difference.Id)) { return(false); } // Is the specific violation of the rule ignored? if (_ignoreDifferences.Contains(difference.ToString())) { return(false); } return(_filter.Include(difference)); }
public bool Include(Difference difference) { // Is the entire rule ignored? if (_ignoreDifferences.ContainsKey(difference.Id)) { _ignoreDifferences[difference.Id] = true; return(false); } // Is the specific violation of the rule ignored? var diff = difference.ToString(); if (_ignoreDifferences.ContainsKey(diff)) { _ignoreDifferences[diff] = true; return(false); } return(_filter.Include(difference)); }