ClosedXML / ClosedXML/ClosedXML.Report

Is there a built-in way to use the ["key"] indexer directly on Dictionary<string, object> in {{ ... }} expressions?

Open
#401 0 comments 0 reactions 0 assignees View on GitHub
Dominant language
C#
Stars
647
Forks
122
PR merge metrics
No merged PRs in 30d

Description

## Question / Feature Request

### Question

Is there a built-in way to use the `["key"]` indexer directly on `Dictionary` inside `{{ ... }}` expressions in **ClosedXML.Report** templates?

If not, are there recommended best practices for working with **nested dictionaries** (e.g. `Dictionary` containing other dictionaries) in templates?

---

### Sample data structure

```csharp
var items = new List>
{
new Dictionary
{
["id"] = 1,
["nodes"] = new Dictionary
{
["dynamic_node"] = new Dictionary
{
["availability"] = "Available"
}
}
}
};

Contributor guide

No contributing guide indexed for this repository

Research direction

No files, tests, or entry points are named. Start by inspecting how ClosedXML.Report evaluates {{ ... }} expressions and resolves Dictionary values, then compare that behavior with the nested dictionary sample. Done would require a documented or implemented way to access dictionary keys directly, including nested values.

Written by the indexing model from the issue text.

Assessment

Tech stack
csharp
Domain
tooling
Issue type
Feature
Difficulty
5/5
Estimated time
Over a week
Activity status
Stale
Clarity
Needs clarification
Newbie friendliness
25/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.