diff options
author | Chris King <kingces95@gmail.com> | 2016-03-25 13:53:19 -0700 |
---|---|---|
committer | Chris King <kingces95@gmail.com> | 2016-03-25 13:53:19 -0700 |
commit | b3365b7f7db2ab9505d9f0c704f86dd3b24b0caa (patch) | |
tree | 3e9c78ed3397f34d54daed530da2a7669c7f63b4 /Xamarin.Forms.Platform.WinRT | |
parent | 03c84382c7bfa6d8712e07dfa48e569f9a9b66a7 (diff) | |
download | xamarin-forms-b3365b7f7db2ab9505d9f0c704f86dd3b24b0caa.tar.gz xamarin-forms-b3365b7f7db2ab9505d9f0c704f86dd3b24b0caa.tar.bz2 xamarin-forms-b3365b7f7db2ab9505d9f0c704f86dd3b24b0caa.zip |
Reformat using statements
Diffstat (limited to 'Xamarin.Forms.Platform.WinRT')
4 files changed, 5 insertions, 5 deletions
diff --git a/Xamarin.Forms.Platform.WinRT/ImageLoaderSourceHandler.cs b/Xamarin.Forms.Platform.WinRT/ImageLoaderSourceHandler.cs index c9c711e0..d2b223b5 100644 --- a/Xamarin.Forms.Platform.WinRT/ImageLoaderSourceHandler.cs +++ b/Xamarin.Forms.Platform.WinRT/ImageLoaderSourceHandler.cs @@ -28,7 +28,7 @@ namespace Xamarin.Forms.Platform.WinRT return null; } - using(IRandomAccessStream stream = streamImage.AsRandomAccessStream()) + using (IRandomAccessStream stream = streamImage.AsRandomAccessStream()) { try { diff --git a/Xamarin.Forms.Platform.WinRT/StreamImagesourceHandler.cs b/Xamarin.Forms.Platform.WinRT/StreamImagesourceHandler.cs index ecf8c0db..faaa4988 100644 --- a/Xamarin.Forms.Platform.WinRT/StreamImagesourceHandler.cs +++ b/Xamarin.Forms.Platform.WinRT/StreamImagesourceHandler.cs @@ -21,7 +21,7 @@ namespace Xamarin.Forms.Platform.WinRT var streamsource = imagesource as StreamImageSource; if (streamsource != null && streamsource.Stream != null) { - using(Stream stream = await streamsource.GetStreamAsync(cancellationToken)) + using (Stream stream = await streamsource.GetStreamAsync(cancellationToken)) { if (stream == null) return null; diff --git a/Xamarin.Forms.Platform.WinRT/WindowsBasePlatformServices.cs b/Xamarin.Forms.Platform.WinRT/WindowsBasePlatformServices.cs index bff32b78..dcda2c2f 100644 --- a/Xamarin.Forms.Platform.WinRT/WindowsBasePlatformServices.cs +++ b/Xamarin.Forms.Platform.WinRT/WindowsBasePlatformServices.cs @@ -115,7 +115,7 @@ namespace Xamarin.Forms.Platform.WinRT public async Task<Stream> GetStreamAsync(Uri uri, CancellationToken cancellationToken) { - using(var client = new HttpClient()) + using (var client = new HttpClient()) { HttpResponseMessage streamResponse = await client.GetAsync(uri.AbsoluteUri).ConfigureAwait(false); return await streamResponse.Content.ReadAsStreamAsync().ConfigureAwait(false); diff --git a/Xamarin.Forms.Platform.WinRT/WindowsSerializer.cs b/Xamarin.Forms.Platform.WinRT/WindowsSerializer.cs index 4e0ad794..0eeb2f8f 100644 --- a/Xamarin.Forms.Platform.WinRT/WindowsSerializer.cs +++ b/Xamarin.Forms.Platform.WinRT/WindowsSerializer.cs @@ -23,7 +23,7 @@ namespace Xamarin.Forms.Platform.WinRT try { StorageFile file = await ApplicationData.Current.RoamingFolder.GetFileAsync(PropertyStoreFile).DontSync(); - using(Stream stream = (await file.OpenReadAsync().DontSync()).AsStreamForRead()) + using (Stream stream = (await file.OpenReadAsync().DontSync()).AsStreamForRead()) { if (stream.Length == 0) return new Dictionary<string, object>(4); @@ -41,7 +41,7 @@ namespace Xamarin.Forms.Platform.WinRT public async Task SerializePropertiesAsync(IDictionary<string, object> properties) { StorageFile file = await ApplicationData.Current.RoamingFolder.CreateFileAsync(PropertyStoreFile, CreationCollisionOption.ReplaceExisting).DontSync(); - using(StorageStreamTransaction transaction = await file.OpenTransactedWriteAsync().DontSync()) + using (StorageStreamTransaction transaction = await file.OpenTransactedWriteAsync().DontSync()) { try { |