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(); }
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(); }
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(); }