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.

Dictionary as data source

See original GitHub issue

Hi,

Is it possible to pass dictionary to template as a variable for usecase when data structure is being specified only in runtime? so not to create class: ` class Person { string FirstName { get; set; } string LastName { get; set; } }

template.AddVariable(personObj) but var data = SomeDataRetrievingMethod(); template.AddVariable(data); `

Thank you

Issue Analytics

  • State:closed
  • Created 6 years ago
  • Comments:7 (4 by maintainers)

github_iconTop GitHub Comments

2reactions
kitzler-wallicommented, Dec 22, 2022

Is that feature already available again? I’m currently struggling with Dictionaries or ExpandoObjects and both don’t work for me currently.

0reactions
b0bi79commented, Jan 4, 2019

Unfortunately, after switching to the new parsing library “System.Linq.Dynamic.Core” this feature became unavailable. But I have an idea how to return this functionality, only time is missing. In the next version I will implement it.

Read more comments on GitHub >

github_iconTop Results From Across the Web

Binding Combobox Using Dictionary as the Datasource
NET 2.0 and I'm trying to bind a combobox's Datasource to a sorted dictionary. So the error I'm getting is "DataMember property 'Key'...
Read more >
How to Make a Data Dictionary
The purpose of a data dictionary is to explain what all the variable names and values in your spreadsheet really mean. Variable names;...
Read more >
Is it possible to use a dictionary<T,T> as a data source for ...
It is impossible to build a tree-like structure using Dictionary <string, string> as a data source. You can either convert your Dictionary to...
Read more >
MATLAB addDataSource
This MATLAB function adds a data dictionary, refDictionaryFile, ... The DataSource property of an entry indicates the dictionary that defines the entry.
Read more >
Using dictionary values as datasource in Blazor DataGrid
You can assign dictionary values in the datagrid's data source by accessing them using KeyValuePair data type inside the Template property of the...
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