Class Operator<D>
Abstract class for all reflected operators.
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 SourceMethod
Gets the implementing method for the operator.
Declaration
public MethodInfo Method { get; }
Property Value
Type | Description |
---|---|
MethodInfo |
Type
Gets type of operator.
Declaration
public ExpressionType Type { get; }
Property Value
Type | Description |
---|---|
ExpressionType |
Methods
| Improve this Doc View SourceEquals(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. |
GetHashCode()
Computes hash code of the reflected operator.
Declaration
public override int GetHashCode()
Returns
Type | Description |
---|---|
Int32 | The hash code of the reflected operator. |
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 SourceImplicit(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 SourceIOperator<D>.Invoker
Declaration
D IOperator<D>.Invoker { get; }
Returns
Type | Description |
---|---|
D |