Table of Contents

Class FluentStringLookup

Namespace
Dynamitey.DynamicObjects
Assembly
Dynamitey.Community.dll

Building block to use Method calls as dynamic lookups

public class FluentStringLookup : DynamicObject, IDynamicMetaObjectProvider
Inheritance
FluentStringLookup
Implements
Inherited Members

Constructors

FluentStringLookup(Func<string, dynamic>)

Initializes a new instance of the FluentStringLookup class.

[RequiresDynamicCode("Constructing a FluentStringLookup instantiates System.Dynamic.DynamicObject, whose default constructor requires the DLR's runtime code generation; not supported when AOT-compiled.")]
public FluentStringLookup(Func<string, dynamic> lookup)

Parameters

lookup Func<string, dynamic>

The lookup.

Methods

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

Tries the invoke.

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

TryInvokeMember(InvokeMemberBinder, object?[]?, out object?)

Tries the invoke member.

public override bool TryInvokeMember(InvokeMemberBinder binder, object?[]? args, out object? result)

Parameters

binder InvokeMemberBinder

The binder.

args object[]

The args.

result object

The result.

Returns

bool