Class Builder<TObjectProtoType>.SetupTrampoline<TInnerObjectProtoType>
- Namespace
- Dynamitey.DynamicObjects
- Assembly
- Dynamitey.Community.dll
Trampoline for setup builder
public class Builder<TObjectProtoType>.SetupTrampoline<TInnerObjectProtoType> : DynamicObject, IDynamicMetaObjectProvider
Type Parameters
TInnerObjectProtoType
- Inheritance
-
Builder<TObjectProtoType>.SetupTrampoline<TInnerObjectProtoType>
- Implements
- Inherited Members
Constructors
SetupTrampoline(Builder<TInnerObjectProtoType>)
Initializes a new instance of the Builder<TObjectProtoType>.SetupTrampoline<TInnerObjectProtoType> class.
[RequiresDynamicCode("Constructing any DynamicObject-derived type instantiates System.Dynamic.DynamicObject, whose default constructor requires the DLR's runtime code generation; not supported when AOT-compiled.")]
public SetupTrampoline(Builder<TInnerObjectProtoType> builder)
Parameters
builderBuilder<TInnerObjectProtoType>The builder.
Methods
TryInvoke(InvokeBinder, dynamic?[]?, out object?)
Tries the invoke.
[UnconditionalSuppressMessage("Trimming", "IL2026", Justification = "args is statically typed 'dynamic[]', so 'new Activate(it)' below binds through the DLR binder even though Activate's constructor takes a plain Type. This is a DynamicObject.TryInvoke override: it can't carry [RequiresUnreferencedCode] itself without mismatching the unannotated base member, and the DLR invokes it only after the consumer's own dynamic call site already triggered the framework's warning.")]
[UnconditionalSuppressMessage("AOT", "IL3050", Justification = "Same 'dynamic'-forced construction as above; see the IL2026 suppression on this member.")]
public override bool TryInvoke(InvokeBinder binder, dynamic?[]? args, out object? result)
Parameters
binderInvokeBinderThe binder.
argsdynamic[]The args.
resultobjectThe result.
Returns
Exceptions
- ArgumentException
Requires argument names for every argument