Show / Hide Table of Contents

Class Executer<T>

Execution engine for the kernels

Inheritance
System.Object
System.Dynamic.DynamicObject
Executer<T>
Implements
System.Dynamic.IDynamicMetaObjectProvider
Inherited Members
System.Dynamic.DynamicObject.GetDynamicMemberNames()
System.Dynamic.DynamicObject.GetMetaObject(System.Linq.Expressions.Expression)
System.Dynamic.DynamicObject.TryBinaryOperation(System.Dynamic.BinaryOperationBinder, System.Object, System.Object)
System.Dynamic.DynamicObject.TryConvert(System.Dynamic.ConvertBinder, System.Object)
System.Dynamic.DynamicObject.TryCreateInstance(System.Dynamic.CreateInstanceBinder, System.Object[], System.Object)
System.Dynamic.DynamicObject.TryDeleteIndex(System.Dynamic.DeleteIndexBinder, System.Object[])
System.Dynamic.DynamicObject.TryDeleteMember(System.Dynamic.DeleteMemberBinder)
System.Dynamic.DynamicObject.TryGetIndex(System.Dynamic.GetIndexBinder, System.Object[], System.Object)
System.Dynamic.DynamicObject.TryGetMember(System.Dynamic.GetMemberBinder, System.Object)
System.Dynamic.DynamicObject.TryInvoke(System.Dynamic.InvokeBinder, System.Object[], System.Object)
System.Dynamic.DynamicObject.TrySetIndex(System.Dynamic.SetIndexBinder, System.Object[], System.Object)
System.Dynamic.DynamicObject.TrySetMember(System.Dynamic.SetMemberBinder, System.Object)
System.Dynamic.DynamicObject.TryUnaryOperation(System.Dynamic.UnaryOperationBinder, System.Object)
System.Object.Equals(System.Object)
System.Object.Equals(System.Object, System.Object)
System.Object.GetHashCode()
System.Object.GetType()
System.Object.MemberwiseClone()
System.Object.ReferenceEquals(System.Object, System.Object)
System.Object.ToString()
Namespace: Amplifier
Assembly: Amplifier.dll
Syntax
public class Executer<T> : DynamicObject, IDynamicMetaObjectProvider where T : struct
Type Parameters
Name Description
T

Constructors

| Improve this Doc View Source

Executer(BaseCompiler)

Initializes a new instance of the Executer<T> class.

Declaration
public Executer(BaseCompiler compiler)
Parameters
Type Name Description
BaseCompiler compiler

The compiler.

Methods

| Improve this Doc View Source

TryInvokeMember(InvokeMemberBinder, Object[], out Object)

Provides the implementation for operations that invoke a member. Classes derived from the System.Dynamic.DynamicObject class can override this method to specify dynamic behavior for operations such as calling a method.

Declaration
public override bool TryInvokeMember(InvokeMemberBinder binder, object[] args, out object result)
Parameters
Type Name Description
System.Dynamic.InvokeMemberBinder binder

Provides information about the dynamic operation. The binder.Name property provides the name of the member on which the dynamic operation is performed. For example, for the statement sampleObject.SampleMethod(100), where sampleObject is an instance of the class derived from the System.Dynamic.DynamicObject class, binder.Name returns "SampleMethod". The binder.IgnoreCase property specifies whether the member name is case-sensitive.

System.Object[] args

The arguments that are passed to the object member during the invoke operation. For example, for the statement sampleObject.SampleMethod(100), where sampleObject is derived from the System.Dynamic.DynamicObject class, args[0][0] is equal to 100.

System.Object result

The result of the member invocation.

Returns
Type Description
System.Boolean

true if the operation is successful; otherwise, false. If this method returns false, the run-time binder of the language determines the behavior. (In most cases, a language-specific run-time exception is thrown.)

Overrides
System.Dynamic.DynamicObject.TryInvokeMember(System.Dynamic.InvokeMemberBinder, System.Object[], System.Object)
Exceptions
Type Condition
ExecutionException

Implements

System.Dynamic.IDynamicMetaObjectProvider

See Also

System.Dynamic.DynamicObject
  • Improve this Doc
  • View Source
Back to top Generated by DocFX