question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Make variable interface suitable for dynamic value lookup

See original GitHub issue

Is your feature request related to a problem? Please describe. I use many variables. Therefore I implement the IDictionary<string, object> interface to lookup variable values dynamically. This worked until version 2.2.0. As of version 2.2.0, the Property Count seems to be used, which cannot be implemented using dynamic value lookup.

Describe the solution you’d like Instead of IDictionary<string, object>, a simplified interface suitable for dynamic value lookup could be used:

public interface IVariables
{
    bool TryGetValue(string key, [MaybeNullWhen(false)] out object value);
}

Issue Analytics

  • State:closed
  • Created 3 years ago
  • Comments:14 (11 by maintainers)

github_iconTop GitHub Comments

1reaction
bijingtoncommented, Jan 11, 2021

Removed from milestone ‘Next release’ to allow this issue to stay open. Note the initial issue has been resolved in release v2.3.0 but I would like to keep this open and follow through with further investigation on dynamic variable loading.

0reactions
bijingtoncommented, Feb 2, 2021

Include in release v2.4.0

Read more comments on GitHub >

github_iconTop Results From Across the Web

Dynamic type depending on variable value? : r/typescript
I've got a few interfaces that extend a base interface. The base type is called "ContentPiece" and the types that extend it are...
Read more >
How to define an interface for objects with dynamic keys?
E.g. string . You may use any or unknown if they may have any value. In the export type obj<T = unknown> =...
Read more >
dynamic access of interface members
I want to access the members of Interface dynamically . Using java.lang.reflect.Fields we can access the Class variables dynamically.
Read more >
Interface Variables and Inputs - Appian 23.2
The most common way to configure a component is to set its value and saveInto to the same variable. To see how this...
Read more >
Guide to Golang Interface and How to Implement It
You can find the dynamic value of an interface using the syntax i.(Type), where i is a variable of type interface and Type...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found