Table of Contents

Class ExtensionToInstanceProxy.Invoker

Namespace
Dynamitey.DynamicObjects
Assembly
Dynamitey.Community.dll

Basic Invoker syntax for dynamic generics

public class ExtensionToInstanceProxy.Invoker : BaseObject, IDynamicMetaObjectProvider, IEquivalentType
Inheritance
ExtensionToInstanceProxy.Invoker
Implements
Derived
Inherited Members

Fields

GenericMethodParameters

The generic method parameters

protected Type[]? GenericMethodParameters

Field Value

Type[]

GenericParams

The generic params

protected Type[] GenericParams

Field Value

Type[]

Name

The name

protected string Name

Field Value

string

OverloadTypes

The overload types

protected IDictionary<int, Type[]> OverloadTypes

Field Value

IDictionary<int, Type[]>

Parent

The parent

protected ExtensionToInstanceProxy Parent

Field Value

ExtensionToInstanceProxy

Methods

TryGetIndex(GetIndexBinder, object?[]?, out object)

Tries the index of the get.

[UnconditionalSuppressMessage("Trimming", "IL2026", Justification = "Calls the annotated Dynamic.InvokeConvert and constructs the annotated Invoker. This is a DynamicObject 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 calls as above; see the IL2026 suppression on this member.")]
public override bool TryGetIndex(GetIndexBinder binder, object?[]? indexes, out object result)

Parameters

binder GetIndexBinder

The binder.

indexes object[]

The indexes.

result object

The result.

Returns

bool

TryGetMember(GetMemberBinder, out object?)

Tries the get member.

[UnconditionalSuppressMessage("Trimming", "IL2026", Justification = "Constructs the annotated OverloadInvoker. This is a DynamicObject.TryGetMember 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 member access already triggered the framework's warning.")]
[UnconditionalSuppressMessage("AOT", "IL3050", Justification = "Same OverloadInvoker construction as above; see the IL2026 suppression on this member.")]
public override bool TryGetMember(GetMemberBinder binder, out object? result)

Parameters

binder GetMemberBinder

The binder.

result object

The result.

Returns

bool

TryInvoke(InvokeBinder, object?[]?, out object?)

Tries the invoke.

[UnconditionalSuppressMessage("Trimming", "IL2026", Justification = "Calls the annotated Dynamic.InvokeConvert and Parent.InvokeStaticMethod. This is a DynamicObject 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 calls as above; see the IL2026 suppression on this member.")]
public override bool TryInvoke(InvokeBinder binder, object?[]? args, out object? result)

Parameters

binder InvokeBinder

The binder.

args object[]

The args.

result object

The result.

Returns

bool