public override PipFilter Canonicalize(FilterCanonicalizer canonicalizer) { var canonInner = Inner.Canonicalize(canonicalizer); var canonFilter = CreateFilter(canonInner); // Verify that closure mode is preserved Contract.Assert(canonFilter.ClosureMode == ClosureMode); return(canonicalizer.GetOrAdd(canonFilter)); }
/// <inheritdoc/> public override PipFilter Canonicalize(FilterCanonicalizer canonicalizer) { return(canonicalizer.GetOrAdd(this)); }
/// <summary> /// Produces a new canonicalized filter. /// </summary> public virtual PipFilter Canonicalize(FilterCanonicalizer canonicalizer) { return(canonicalizer.GetOrAdd(this)); }
/// <inheritdoc/> public override PipFilter Canonicalize(FilterCanonicalizer canonicalizer) { var canonInner = Inner.Canonicalize(canonicalizer); return(canonicalizer.GetOrAdd(new NegatingFilter(canonInner))); }
/// <inheritdoc/> public override PipFilter Canonicalize(FilterCanonicalizer canonicalizer) { return(canonicalizer.GetOrAdd(Instance)); }