Exemple #1
0
        public static ParameterUsageVisitor Create([NotNull] Expression expression)
        {
            ParameterUsageVisitor visitor = new ParameterUsageVisitor();

            visitor.Visit(expression);
            return(visitor);
        }
 public static ParameterUsageVisitor GetParameterUsage([NotNull] this Expression expression)
 {
     if (expression == null)
     {
         throw new ArgumentNullException("expression");
     }
     return(ParameterUsageVisitor.Create(expression));
 }