Exemplo n.º 1
0
 public static Matcher <Expression> Argument(this Matcher <NewExpression> matcher, int index)
 {
     return(matcher.Match(n => index >= 0 && index <= n.Arguments.Count - 1)
            .For(n => n.Arguments[index]));
 }
Exemplo n.º 2
0
 public static Matcher <ParameterExpression> Name(this Matcher <ParameterExpression> matcher, string name)
 {
     return(matcher.Match(target => matcher.Target.Name == name));
 }