Class BinaryOperator<TOperand1, TOperand2, TResult>
Represents reflected binary operator.
Inheritance
BinaryOperator<TOperand1, TOperand2, TResult>
Implements
System.IConvertible<Operator<TOperand1, TOperand2, TResult>>
Inherited Members
Namespace: DotNext.Reflection
Assembly: DotNext.Reflection.dll
Syntax
public sealed class BinaryOperator<TOperand1, TOperand2, TResult> : Operator<Operator<TOperand1, TOperand2, TResult>>, IOperator<Operator<TOperand1, TOperand2, TResult>>, IMember<MemberInfo, Operator<TOperand1, TOperand2, TResult>>, IMember<MemberInfo>, ICustomAttributeProvider, IConvertible<Operator<TOperand1, TOperand2, TResult>>
Type Parameters
Name | Description |
---|---|
TOperand1 | The type of the first operand. |
TOperand2 | The type of the second operand. |
TResult | 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(TOperand1, TOperand2)
Invokes binary operator.
Declaration
public TResult Invoke(in TOperand1 first, in TOperand2 second)
Parameters
Type | Name | Description |
---|---|---|
TOperand1 | first | First operand. |
TOperand2 | second | Second operand. |
Returns
Type | Description |
---|---|
TResult | Result of binary operator. |
Implements
System.IConvertible<>