Show / Hide Table of Contents

Class Type<T>.Operator<U>

Represents binary operator applicable to type T.

Inheritance
Object
Type<T>.Operator<U>
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 Source

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

| Improve this Doc View Source

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.

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