View on GitHub
Clean Architecture Toolkit for .NET
Clean Architecture Toolkit is a clean, modular architecture foundation for .NET applications.
It embraces SOLID principles and focuses on maintainability, testability, and scalability through clear boundaries and pluggable design.

|   HOME   |   MODULE OVERVIEW   |   DEMO   |   CAT.EXTENSIONS   |

Code Reference

» Cat.Expression.Extensions Assembly » Cat.Expression.Extensions Namespace » ExpressionExtensions Class

ExpressionExtensions.RemoveUnary(Expression) Method

Unwraps a unary expression, such as a boxing conversion, to get at its underlying operand.

private static System.Linq.Expressions.Expression RemoveUnary(System.Linq.Expressions.Expression expression);

Parameters

expression System.Linq.Expressions.Expression

The expression to unwrap.

Returns

System.Linq.Expressions.Expression
The operand of a unary expression, or the expression itself if it isn’t unary.