Skip to content
This repository was archived by the owner on May 1, 2024. It is now read-only.

[iOS] Add using statement to dispose stream #13

Merged
merged 1 commit into from
Mar 28, 2016
Merged

[iOS] Add using statement to dispose stream #13

merged 1 commit into from
Mar 28, 2016

Conversation

kingces95
Copy link
Contributor

Description of Change

Add using statement to dispose stream.

Bugs Fixed

  • Provide links to bugs here

https://bugzilla.xamarin.com/show_bug.cgi?id=39896

PR Checklist

  • Has tests (if omitted, state reason in description)
  • Rebased on top of master at time of PR
  • Changes adhere to coding standard
  • Consolidate commits as makes sense

@@ -197,7 +199,7 @@ public sealed class ImageLoaderSourceHandler : IImageSourceHandler
var imageLoader = imagesource as UriImageSource;
if (imageLoader != null && imageLoader.Uri != null)
{
using(var streamImage = await imageLoader.GetStreamAsync(cancelationToken).ConfigureAwait(false))
using (var streamImage = await imageLoader.GetStreamAsync(cancelationToken).ConfigureAwait(false))
Copy link
Contributor Author

Choose a reason for hiding this comment

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

@hartez Ctrl-k-f using the Xamarin.Forms.vssettings added this space before the using statement.. Earlier in the file a case statements was also re-formatted. Do we want Ctrl-k-f to be a no-op for all files in the repro?

Copy link
Contributor

Choose a reason for hiding this comment

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

Looks like the Resharper settings are "no space before the parenthesis after using", so I just go that wrong in the VS settings file. I'll put in a PR.

@kingces95 kingces95 changed the title Add using statement to dispose stream [iOS] Add using statement to dispose stream Mar 24, 2016
@samhouts
Copy link
Member

👍

@rmarinho rmarinho merged commit 3ab4fdc into master Mar 28, 2016
@rmarinho rmarinho deleted the bz39896 branch March 28, 2016 12:14
jsuarezruiz pushed a commit to PlainConcepts/Xamarin.Forms that referenced this pull request Sep 7, 2017
…ight

Fixed HasUnevenRows and transparent separator color error in ListView
@samhouts samhouts added this to the 2.2.0 milestone Jul 3, 2018
shyunMin pushed a commit to shyunMin/Xamarin.Forms that referenced this pull request Dec 11, 2020
mattleibow pushed a commit that referenced this pull request Jan 28, 2021
* browser launch url implementation (no file scheme)

* Refactor code and upgrade nugets!

Added documentation.

* Add browser tests

* Refactor code

* refactor a bit more.

* Add 1G to Android samples

* Update java heap on device tests

* Rename enums and cleanup based on feedback.

* Fix typos in docs.

* One set of docs got missed.

* Add a check to see if intent is supported before calling it.
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.

4 participants