Class ObjectAllocatorChain
- Namespace
- Echo.Platforms.AsmResolver.Emulation.Invocation
- Assembly
- Echo.Platforms.AsmResolver.dll
Represents a chain of object allocators that are invoked in sequence until one of the allocators produces a conclusive result.
public class ObjectAllocatorChain : IObjectAllocator
- Inheritance
-
ObjectAllocatorChain
- Implements
- Inherited Members
- Extension Methods
Properties
Allocators
Gets the list of invokers to be called.
public IList<IObjectAllocator> Allocators { get; }
Property Value
Methods
Allocate(CilExecutionContext, IMethodDescriptor, IList<BitVector>)
Allocates a new object with the provided constructor and arguments.
public AllocationResult Allocate(CilExecutionContext context, IMethodDescriptor ctor, IList<BitVector> arguments)
Parameters
contextCilExecutionContextThe execution context the call originates from.
ctorIMethodDescriptorThe constructor to invoke after allocation.
argumentsIList<BitVector>The arguments to invoke the constructor with.
Returns
- AllocationResult
The result