Class BinaryOperator<Op1, Op2, R>
Represents reflected binary operator.
Inherited Members
Namespace: DotNext.Reflection
Assembly: DotNext.Reflection.dll
Syntax
public sealed class BinaryOperator<Op1, Op2, R> : Operator<Operator<Op1, Op2, R>>, IOperator<Operator<Op1, Op2, R>>
  Type Parameters
| Name | Description | 
|---|---|
| Op1 | The type of the first operand.  | 
      
| Op2 | The type of the second operand.  | 
      
| R | The type of the operator result.  | 
      
Properties
| Improve this Doc View SourceType
Type of operator.
Declaration
public BinaryOperator Type { get; }
  Property Value
| Type | Description | 
|---|---|
| BinaryOperator | 
Methods
| Improve this Doc View SourceInvoke(Op1, Op2)
Invokes binary operator.
Declaration
public R Invoke(in Op1 first, in Op2 second)
  Parameters
| Type | Name | Description | 
|---|---|---|
| Op1 | first | First operand.  | 
      
| Op2 | second | Second operand.  | 
      
Returns
| Type | Description | 
|---|---|
| R | Result of binary operator.  |