summaryrefslogtreecommitdiff
path: root/Xamarin.Forms.Platform.WinRT
diff options
context:
space:
mode:
Diffstat (limited to 'Xamarin.Forms.Platform.WinRT')
-rw-r--r--Xamarin.Forms.Platform.WinRT/ImageLoaderSourceHandler.cs2
-rw-r--r--Xamarin.Forms.Platform.WinRT/StreamImagesourceHandler.cs2
-rw-r--r--Xamarin.Forms.Platform.WinRT/WindowsBasePlatformServices.cs2
-rw-r--r--Xamarin.Forms.Platform.WinRT/WindowsSerializer.cs4
4 files changed, 5 insertions, 5 deletions
diff --git a/Xamarin.Forms.Platform.WinRT/ImageLoaderSourceHandler.cs b/Xamarin.Forms.Platform.WinRT/ImageLoaderSourceHandler.cs
index c9c711e..d2b223b 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 ecf8c0d..faaa498 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 bff32b7..dcda2c2 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 4e0ad79..0eeb2f8 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
{