Show / Hide Table of Contents

Class Type<T>.Operator

Represents unary operator applicable to type T.

Inheritance
Object
Type<T>.Operator
Namespace: DotNext.Reflection
Assembly: DotNext.Reflection.dll
Syntax
public static class Operator : object

Methods

| Improve this Doc View Source

Get(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.

| Improve this Doc View Source

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.

| Improve this Doc View Source

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.

| Improve this Doc View Source

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.

  • Improve this Doc
  • View Source
Back to top Generated by DocFX