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

Update Form1.cs #3444

Merged
merged 1 commit into from
Oct 18, 2017
Merged

Update Form1.cs #3444

merged 1 commit into from
Oct 18, 2017

Conversation

bruceburge
Copy link
Contributor

Removed unneeded iconForFile = Icon.ExtractAssociatedIcon(file.FullName); this would cause extraction every time and defeat the purpose of the the imagelist check.

Removed Extract Icon Extraction call

On the title describe
what you've fixed (or created) with this Pull Request (PR).

Summary

The extract call made the following statements moot, and defeated the purpose of the caching.

Fixes #Issue_Number

Note: The "Fixes #nnn" syntax in the PR description causes
GitHub to automatically close the issue when this PR is merged.
Remove that line if you don't have issues associated with this
PR. Click on the Guidelines for Contributing link above for details.

Details

Explain your changes, and why you made them. If that
information is already available in the issue referenced
above, just referencing the issue is preferred to copying
the text.

This may not be necessary depending on the scope of the PR
changes. For example, "fix typo in introduction.md" is
sufficient to describe that PR.

Suggested Reviewers

If you know who should review this, use '@' to request a review.

Removed unneeded iconForFile = Icon.ExtractAssociatedIcon(file.FullName); this would cause extraction every time and defeat the purpose of the the imagelist check.
@dnfclas
Copy link

dnfclas commented Oct 17, 2017

This seems like a small (but important) contribution, so no Contribution License Agreement is required at this point. We will now review your pull request.
Thanks,
.NET Foundation Pull Request Bot

Copy link
Contributor

@rpetrusha rpetrusha left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks for correcting this example, @bruceburge. Could you also correct the corresponding Visual Basic example at docs/samples/snippets/visualbasic/VS_Snippets_Winforms/System.Drawing.Icon.ExtractAssociatedIconEx/VB? Or if you'd prefer, we can change it.

@bruceburge
Copy link
Contributor Author

@rpetrusha
Copy link
Contributor

You're right, @bruceburge. I apologize. I didn't actually inspect the Visual Basic code, since it's supposed to be the same as the C# code. I'll merge your PR now. Thanks again for submitting this PR.

@rpetrusha rpetrusha merged commit 1d99ee5 into dotnet:master Oct 18, 2017
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.

3 participants