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