Beispiel #1
0
        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));
        }
Beispiel #2
0
        /// <inheritdoc/>
        public override PipFilter Canonicalize(FilterCanonicalizer canonicalizer)
        {
            var canonInner = Inner.Canonicalize(canonicalizer);

            return(canonicalizer.GetOrAdd(new NegatingFilter(canonInner)));
        }