Skip to content

Conversation

vpenades
Copy link
Contributor

@vpenades vpenades commented Mar 25, 2020

Additionally, it could be possible to add even more IProgress methods with different types, or, by using new c# features like value tuples it could be possible to add something like this:

IProgress<(int progress, int text)>
IProgress<(int progress, int text, int description)>

But using value tuples in that way would require upgrading the project to require C# langversion 7.2... so I left it for another day...


Closes #12

@augustoproiete augustoproiete merged commit f292222 into ookii-dialogs:master Mar 25, 2020
@augustoproiete
Copy link
Member

Thanks @vpenades

I agree with leaving the value tuples approach for a future enhancement. I'm working on getting this working on .NET Core 3.1, and the projects will be upgraded in the process and maybe we can revisit this.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

Successfully merging this pull request may close these issues.

Implement IProgress<int> and IProgress<string> in ProgressDialog
2 participants