Esempio n. 1
0
        /// <summary cref="IntrinsicMatcher{T}.TransformTo{TOther, TTransformer}(
        /// TTransformer, IntrinsicMatcher{TOther})"/>
        public sealed override void TransformTo <TOther, TTransformer>(
            TTransformer transformer,
            IntrinsicMatcher <TOther> other)
        {
            var otherMatcher = other as IntrinsicValueMatcher <TOther>;

            otherMatcher.Implementation = transformer.Transform(Implementation);
        }
Esempio n. 2
0
        /// <summary cref="IntrinsicMatcher{T}.TransformTo{TOther, TTransformer}(
        /// TTransformer, IntrinsicMatcher{TOther})"/>
        public override void TransformTo <TOther, TTransformer>(
            TTransformer transformer,
            IntrinsicMatcher <TOther> other)
        {
            var otherMatcher = other as IntrinsicMethodMatcher <TOther>;

            foreach (var entry in entries)
            {
                otherMatcher.entries[entry.Key] = transformer.Transform(entry.Value);
            }
        }
Esempio n. 3
0
 /// <summary>
 /// Creates a new backend container.
 /// </summary>
 public static BackendContainer Create() =>
 new BackendContainer()
 {
     matchers = IntrinsicMatcher.CreateMatchers <ImplementationEntry>()
 };