Пример #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());