Esempio n. 1
0
            private static Func <T, T> CreateValue()
            {
#if LESSTHAN_NET40
                return(OperatorsFactory.UnaryOperator <T>(ExpressionType.Not));
#else
                return(OperatorsFactory.UnaryOperator <T>(ExpressionType.OnesComplement));
#endif
            }
Esempio n. 2
0
            private static Func <T, T> CreateValue()
            {
#if NET40_OR_GREATER || TARGETS_NETSTANDARD || TARGETS_NETCOREAPP
                return(OperatorsFactory.UnaryOperator <T>(ExpressionType.OnesComplement));
#else
                return(OperatorsFactory.UnaryOperator <T>(ExpressionType.Not));
#endif
            }