Show / Hide Table of Contents

Class Type<T>.Operator<TOperand>

Represents binary operator applicable to type T.

Inheritance
Object
Type<T>.Operator<TOperand>
Inherited Members
Object.Equals(Object)
Object.Equals(Object, Object)
Object.GetHashCode()
Object.GetType()
Object.MemberwiseClone()
Object.ReferenceEquals(Object, Object)
Object.ToString()
Namespace: DotNext.Reflection
Assembly: DotNext.Reflection.dll
Syntax
public static class Operator<TOperand>
Type Parameters
Name Description
TOperand

Type of second operand.

Methods

| Improve this Doc View Source

Get<TResult>(BinaryOperator, OperatorLookup)

Gets binary operator.

Declaration
public static BinaryOperator<T, TOperand, TResult> Get<TResult>(BinaryOperator op, OperatorLookup lookup = OperatorLookup.Any)
Parameters
Type Name Description
BinaryOperator op

Binary operator type.

OperatorLookup lookup

Operator resolution strategy.

Returns
Type Description
BinaryOperator<T, TOperand, TResult>

Binary operator; or null, if it doesn't exist.

Type Parameters
Name Description
TResult

Result of binary operator.

| Improve this Doc View Source

Require<TResult>(BinaryOperator, OperatorLookup)

Gets binary operator.

Declaration
public static BinaryOperator<T, TOperand, TResult> Require<TResult>(BinaryOperator op, OperatorLookup lookup = OperatorLookup.Any)
Parameters
Type Name Description
BinaryOperator op

Binary operator type.

OperatorLookup lookup

Operator resolution strategy.

Returns
Type Description
BinaryOperator<T, TOperand, TResult>

Binary operator.

Type Parameters
Name Description
TResult

Result of binary operator.

Exceptions
Type Condition
MissingOperatorException

Operator doesn't exist.

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