Skip to content
This repository was archived by the owner on Dec 14, 2025. It is now read-only.

Allow creation of custom List/Enumerable wrappers#171

Open
CeesKaas wants to merge 2 commits intomayuki:masterfrom
CeesKaas:master
Open

Allow creation of custom List/Enumerable wrappers#171
CeesKaas wants to merge 2 commits intomayuki:masterfrom
CeesKaas:master

Conversation

@CeesKaas
Copy link

while I was working with Cocona I ran into an issue where I wanted some extra behaviour on a list of items given on the command line, I found no other way of doing it than with an intermediate holding list and then a lazy property that on initial read would load my wrapper.

I think this is a better solution, where when a constructor exists for the wrapping type that accepts an IEnumerable of the list type Cocona calls that constructor.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant