System.Linq.Expressions.Expression.Rethrow C# (CSharp) Method

Rethrow() public static method

Creates a UnaryExpression that represents a rethrowing of an exception with a given type.
public static Rethrow ( Type type ) : UnaryExpression
type Type The new of the expression.
return UnaryExpression
        public static UnaryExpression Rethrow(Type type)
        {
            return Throw(null, type);
        }

Same methods

Expression::Rethrow ( ) : UnaryExpression

Usage Example

        public void Rethrow()
        {
            var expression =
                LinqExpression.Rethrow();

            ShouldRoundrip(expression);
        }
All Usage Examples Of System.Linq.Expressions.Expression::Rethrow
Expression