Skip to content

Add KeyValuePairSource as another ISource extension#244

Merged
axunonb merged 1 commit intoaxuno:version/v3.0from
axunonb:pr-add-keyvaluepairsource
Feb 13, 2022
Merged

Add KeyValuePairSource as another ISource extension#244
axunonb merged 1 commit intoaxuno:version/v3.0from
axunonb:pr-add-keyvaluepairsource

Conversation

@axunonb
Copy link
Copy Markdown
Member

@axunonb axunonb commented Feb 13, 2022

Added KeyValuePairSource as a simple, cheap and performant way to create named placeholders.

Example:

Smart.Format("{placeholder}", new KeyValuePair<string, object?>("placeholder", "some value")
// Result: "some value"

@axunonb axunonb merged commit ffecd9d into axuno:version/v3.0 Feb 13, 2022
@axunonb axunonb deleted the pr-add-keyvaluepairsource branch February 13, 2022 19:18
axunonb added a commit to axunonb/SmartFormat that referenced this pull request Mar 10, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant