Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Added IProgress<int> and IProgress<string> to ProgressDialog #13

Merged
merged 1 commit into from
Mar 25, 2020
Merged

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