/// <summary>
 /// Creates an <see cref="InvocationInfo"/> instance from the target <paramref name="expression"/>.
 /// </summary>
 /// <param name="expression">The <see cref="LambdaExpression"/> from which to create an <see cref="InvocationInfo"/> instance.</param>
 /// <returns><see cref="InvocationInfo"/>.</returns>
 public static InvocationInfo ToInvocationInfo(this LambdaExpression expression)
 {
     var invocationVisitor = new InvocationInfoBuilder();
     return invocationVisitor.Build(expression.Simplify());
 }
Beispiel #2
0
        /// <summary>
        /// Creates an <see cref="InvocationInfo"/> instance from the target <paramref name="expression"/>.
        /// </summary>
        /// <param name="expression">The <see cref="LambdaExpression"/> from which to create an <see cref="InvocationInfo"/> instance.</param>
        /// <returns><see cref="InvocationInfo"/>.</returns>
        public static InvocationInfo ToInvocationInfo(this LambdaExpression expression)
        {
            var invocationVisitor = new InvocationInfoBuilder();

            return(invocationVisitor.Build(expression.Simplify()));
        }