예제 #1
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());
 }
예제 #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()));
        }