Example #1
0
 internal Kind(UnaryOperator operatorType, bool overloaded)
 {
     this.operatorType = operatorType.ToExpressionType();
     this.overloaded   = overloaded;
 }
Example #2
0
 private UnaryOperator(Expression <Operator <T, R> > invoker, UnaryOperator type, MethodInfo?overloaded)
     : base(invoker.Compile(), type.ToExpressionType(), overloaded)
 {
 }
Example #3
0
 internal static ExpressionType ToExpressionType(this UnaryOperator @operator) => (ExpressionType)@operator;
Example #4
0
 internal static MissingOperatorException Create <T>(UnaryOperator @operator)
 => new(typeof(T), @operator.ToExpressionType());