Class Operator<TSignature>
Abstract class for all reflected operators.
Inheritance
Operator<TSignature>
Inherited Members
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 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. |
Overrides
| Improve this Doc View SourceGetHashCode()
Computes hash code of the reflected operator.
Declaration
public override int GetHashCode()
Returns
Type | Description |
---|---|
Int32 | The hash code of the reflected operator. |
Overrides
| Improve this Doc View SourceToString()
Returns textual representation of the reflected operator.
Declaration
public override string ToString()
Returns
Type | Description |
---|---|
String | The textual representation of the reflected operator. |
Overrides
Operators
| Improve this Doc View SourceImplicit(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 SourceIMember<MemberInfo, TSignature>.Invoker
Declaration
TSignature IMember<MemberInfo, TSignature>.Invoker { get; }
Returns
Type | Description |
---|---|
TSignature |
IMember<MemberInfo>.Name
Declaration
string IMember<MemberInfo>.Name { get; }
Returns
Type | Description |
---|---|
String |
IMember<MemberInfo>.RuntimeMember
Declaration
MemberInfo IMember<MemberInfo>.RuntimeMember { get; }
Returns
Type | Description |
---|---|
MemberInfo |
Implements
System.IConvertible<>