Class Type<T>.Operator<U>
Represents binary operator applicable to type T.
Namespace: DotNext.Reflection
Assembly: DotNext.Reflection.dll
Syntax
public static class Operator<U> : object
  Type Parameters
| Name | Description | 
|---|---|
| U | Type of second operand.  | 
      
Methods
| Improve this Doc View SourceGet<R>(BinaryOperator, OperatorLookup)
Gets binary operator.
Declaration
public static BinaryOperator<T, U, R> Get<R>(BinaryOperator op, OperatorLookup lookup = default(OperatorLookup))
  Parameters
| Type | Name | Description | 
|---|---|---|
| BinaryOperator | op | Binary operator type.  | 
      
| OperatorLookup | lookup | Operator resolution strategy.  | 
      
Returns
| Type | Description | 
|---|---|
| BinaryOperator<T, U, R> | Binary operator; or null, if it doesn't exist.  | 
      
Type Parameters
| Name | Description | 
|---|---|
| R | Result of binary operator.  | 
      
Require<R>(BinaryOperator, OperatorLookup)
Gets binary operator.
Declaration
public static BinaryOperator<T, U, R> Require<R>(BinaryOperator op, OperatorLookup lookup = default(OperatorLookup))
  Parameters
| Type | Name | Description | 
|---|---|---|
| BinaryOperator | op | Binary operator type.  | 
      
| OperatorLookup | lookup | Operator resolution strategy.  | 
      
Returns
| Type | Description | 
|---|---|
| BinaryOperator<T, U, R> | Binary operator.  | 
      
Type Parameters
| Name | Description | 
|---|---|
| R | Result of binary operator.  | 
      
Exceptions
| Type | Condition | 
|---|---|
| MissingOperatorException | Operator doesn't exist.  |