Class Executer<T>
Execution engine for the kernels
Inheritance
Implements
Inherited Members
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 SourceExecuter(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 SourceTryInvokeMember(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, |
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
Exceptions
Type | Condition |
---|---|
ExecutionException |