Show / Hide Table of Contents

Class Operator<TSignature>

Abstract class for all reflected operators.

Inheritance
Object
Operator<TSignature>
BinaryOperator<TOperand1, TOperand2, TResult>
UnaryOperator<TOperand, TResult>
Implements
IOperator<TSignature>
IMember<MemberInfo, TSignature>
IMember<MemberInfo>
ICustomAttributeProvider
System.IConvertible<TSignature>
Inherited Members
Object.Equals(Object, Object)
Object.GetType()
Object.MemberwiseClone()
Object.ReferenceEquals(Object, Object)
Namespace: DotNext.Reflection
Assembly: DotNext.Reflection.dll
Syntax
public abstract class Operator<TSignature> : IOperator<TSignature>, IMember<MemberInfo, TSignature>, IMember<MemberInfo>, ICustomAttributeProvider, IConvertible<TSignature> where TSignature : Delegate
Type Parameters
Name Description
TSignature

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.

Overrides
Object.Equals(Object)
| 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.

Overrides
Object.GetHashCode()
| 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.

Overrides
Object.ToString()

Operators

| Improve this Doc View Source

Implicit(Operator<TSignature> to TSignature)

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

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

The reflected operator.

Returns
Type Description
TSignature

Explicit Interface Implementations

| Improve this Doc View Source

IMember<MemberInfo, TSignature>.Invoker

Declaration
TSignature IMember<MemberInfo, TSignature>.Invoker { get; }
Returns
Type Description
TSignature
| Improve this Doc View Source

IMember<MemberInfo>.Name

Declaration
string IMember<MemberInfo>.Name { get; }
Returns
Type Description
String
| Improve this Doc View Source

IMember<MemberInfo>.RuntimeMember

Declaration
MemberInfo IMember<MemberInfo>.RuntimeMember { get; }
Returns
Type Description
MemberInfo

Implements

IOperator<TSignature>
IMember<TMember, TInvoker>
IMember<TMember>
System.Reflection.ICustomAttributeProvider
System.IConvertible<>

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)
ObjectExtensions.GetUserData<T>(T)
ObjectExtensions.IsOneOf<T>(T, IEnumerable<T>)
ObjectExtensions.IsOneOf<T>(T, T[])
ObjectExtensions.Decompose<T, TResult1, TResult2>(T, Func<T, TResult1>, Func<T, TResult2>, out TResult1, out TResult2)
ObjectExtensions.Decompose<T, TResult1, TResult2>(T, ValueFunc<T, TResult1>, ValueFunc<T, TResult2>, out TResult1, out TResult2)
ObjectExtensions.Decompose<T, TResult1, TResult2>(T, Func<T, TResult1>, Func<T, TResult2>)
ObjectExtensions.Decompose<T, TResult1, TResult2>(T, ValueFunc<T, TResult1>, ValueFunc<T, TResult2>)
ObjectExtensions.As<T>(T)
CustomAttribute.IsDefined<TAttribute>(ICustomAttributeProvider, Boolean)
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)
ExpressionBuilder.Const<T>(T)
  • Improve this Doc
  • View Source
In This Article
Back to top Generated by DocFX