コード例 #1
0
        public RewriteTargetMatcher(IMethodImporter methodImporter, ReadOnlyCollection <IRewriteTarget> targets)
        {
            ArgumentChecker.NotNull(methodImporter, () => methodImporter);
            ArgumentChecker.NotNull(targets, () => targets);

            _targets = targets
                       .SelectMany(target => target.Methods, (target, method) => Tuple.Create(target, methodImporter.Import(method)))
                       .ToList();
        }
コード例 #2
0
        public RewriteTargetMatcher(IMethodImporter methodImporter, ReadOnlyCollection<IRewriteTarget> targets)
        {
            ArgumentChecker.NotNull(methodImporter, () => methodImporter);
            ArgumentChecker.NotNull(targets, () => targets);

            _targets = targets
                .SelectMany(target => target.Methods, (target, method) => Tuple.Create(target, methodImporter.Import(method)))
                .ToList();
        }
コード例 #3
0
ファイル: SetupTargetMatcher.cs プロジェクト: gmf520/Smocks
        public SetupTargetMatcher(IMethodImporter methodImporter, ReadOnlyCollection<SetupTarget> targets)
        {
            ArgumentChecker.NotNull(methodImporter, () => methodImporter);
            ArgumentChecker.NotNull(targets, () => targets);

            _targets = targets
                .Select(target => new Tuple<SetupTarget, MethodReference>(
                    target, methodImporter.Import(target.Method)))
                .ToList();
        }