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