Пример #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));
        }
Пример #2
0
 /// <inheritdoc/>
 public override PipFilter Canonicalize(FilterCanonicalizer canonicalizer)
 {
     return(canonicalizer.GetOrAdd(this));
 }
Пример #3
0
 /// <summary>
 /// Produces a new canonicalized filter.
 /// </summary>
 public virtual PipFilter Canonicalize(FilterCanonicalizer canonicalizer)
 {
     return(canonicalizer.GetOrAdd(this));
 }
Пример #4
0
        /// <inheritdoc/>
        public override PipFilter Canonicalize(FilterCanonicalizer canonicalizer)
        {
            var canonInner = Inner.Canonicalize(canonicalizer);

            return(canonicalizer.GetOrAdd(new NegatingFilter(canonInner)));
        }
Пример #5
0
 /// <inheritdoc/>
 public override PipFilter Canonicalize(FilterCanonicalizer canonicalizer)
 {
     return(canonicalizer.GetOrAdd(Instance));
 }