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