Show / Hide Table of Contents

Class Operator<D>

Abstract class for all reflected operators.

Inheritance
Object
Operator<D>
BinaryOperator<Op1, Op2, R>
UnaryOperator<T, R>
Implements
IOperator<D>
Namespace: DotNext.Reflection
Assembly: DotNext.Reflection.dll
Syntax
public abstract class Operator<D> : object, IOperator<D> where D : Delegate
Type Parameters
Name Description
D

Type of delegate representing operator signature.

Properties

| Improve this Doc View Source

Method

Gets the implementing method for the operator.

Declaration
public MethodInfo Method { get; }
Property Value
Type Description
MethodInfo
| Improve this Doc View Source

Type

Gets type of operator.

Declaration
public ExpressionType Type { get; }
Property Value
Type Description
ExpressionType

Methods

| Improve this Doc View Source

Equals(Object)

Determines whether this object reflects the same operator as other object.

Declaration
public override bool Equals(object other)
Parameters
Type Name Description
Object other

Other reflected operator to be compared.

Returns
Type Description
Boolean

true, if this object reflects the same operator as other object; otherwise, false.

| Improve this Doc View Source

GetHashCode()

Computes hash code of the reflected operator.

Declaration
public override int GetHashCode()
Returns
Type Description
Int32

The hash code of the reflected operator.

| Improve this Doc View Source

ToString()

Returns textual representation of the reflected operator.

Declaration
public override string ToString()
Returns
Type Description
String

The textual representation of the reflected operator.

Operators

| Improve this Doc View Source

Implicit(Operator<D> to D)

Returns the delegate instance that can be used to invoke operator.

Declaration
public static implicit operator D(Operator<D> operator)
Parameters
Type Name Description
Operator<D> operator

The reflected operator.

Returns
Type Description
D

Explicit Interface Implementations

| Improve this Doc View Source

IOperator<D>.Invoker

Declaration
D IOperator<D>.Invoker { get; }
Returns
Type Description
D

Implements

IOperator<D>

Extension Methods

AsyncLockAcquisition.AcquireLockAsync<T>(T, TimeSpan)
AsyncLockAcquisition.AcquireLockAsync<T>(T, CancellationToken)
AsyncLockAcquisition.AcquireReadLockAsync<T>(T, TimeSpan)
AsyncLockAcquisition.AcquireReadLockAsync<T>(T, CancellationToken)
AsyncLockAcquisition.AcquireWriteLockAsync<T>(T, TimeSpan)
AsyncLockAcquisition.AcquireWriteLockAsync<T>(T, CancellationToken)
AsyncLockAcquisition.AcquireUpgradeableReadLockAsync<T>(T, TimeSpan)
AsyncLockAcquisition.AcquireUpgradeableReadLockAsync<T>(T, CancellationToken)
ExpressionBuilder.Const<T>(T)
ObjectExtensions.GetUserData<T>(T)
ObjectExtensions.IsOneOf<T>(T, IEnumerable<T>)
ObjectExtensions.IsOneOf<T>(T, T[])
ObjectExtensions.Decompose<T, R1, R2>(T, Func<T, R1>, Func<T, R2>, out R1, out R2)
ObjectExtensions.Decompose<T, R1, R2>(T, ValueFunc<T, R1>, ValueFunc<T, R2>, out R1, out R2)
ObjectExtensions.Decompose<T, R1, R2>(T, Func<T, R1>, Func<T, R2>)
ObjectExtensions.Decompose<T, R1, R2>(T, ValueFunc<T, R1>, ValueFunc<T, R2>)
LockAcquisition.AcquireReadLock<T>(T)
LockAcquisition.AcquireReadLock<T>(T, TimeSpan)
LockAcquisition.AcquireWriteLock<T>(T)
LockAcquisition.AcquireWriteLock<T>(T, TimeSpan)
LockAcquisition.AcquireUpgradeableReadLock<T>(T)
LockAcquisition.AcquireUpgradeableReadLock<T>(T, TimeSpan)
  • Improve this Doc
  • View Source
Back to top Generated by DocFX