summaryrefslogtreecommitdiff
path: root/Xamarin.Forms.Core/SynchronizedList.cs
diff options
context:
space:
mode:
authorE.Z. Hart <hartez@gmail.com>2016-03-29 13:41:41 -0600
committerE.Z. Hart <hartez@gmail.com>2016-03-29 13:41:41 -0600
commit41ae551eb82072887ff6402bf1eb4a33ec9f1efe (patch)
tree4f1933cef4b5c7bd79b54d4fb0a10cd19f11f577 /Xamarin.Forms.Core/SynchronizedList.cs
parent57b0f3ab3080928d2ddd2da58fc84ef7023c3651 (diff)
downloadxamarin-forms-41ae551eb82072887ff6402bf1eb4a33ec9f1efe.tar.gz
xamarin-forms-41ae551eb82072887ff6402bf1eb4a33ec9f1efe.tar.bz2
xamarin-forms-41ae551eb82072887ff6402bf1eb4a33ec9f1efe.zip
Make spacing in lock statement consistent with code style
Diffstat (limited to 'Xamarin.Forms.Core/SynchronizedList.cs')
-rw-r--r--Xamarin.Forms.Core/SynchronizedList.cs22
1 files changed, 11 insertions, 11 deletions
diff --git a/Xamarin.Forms.Core/SynchronizedList.cs b/Xamarin.Forms.Core/SynchronizedList.cs
index edc6f575..ad98f198 100644
--- a/Xamarin.Forms.Core/SynchronizedList.cs
+++ b/Xamarin.Forms.Core/SynchronizedList.cs
@@ -12,7 +12,7 @@ namespace Xamarin.Forms
public void Add(T item)
{
- lock(_list)
+ lock (_list)
{
_list.Add(item);
_snapshot = null;
@@ -21,7 +21,7 @@ namespace Xamarin.Forms
public void Clear()
{
- lock(_list)
+ lock (_list)
{
_list.Clear();
_snapshot = null;
@@ -30,13 +30,13 @@ namespace Xamarin.Forms
public bool Contains(T item)
{
- lock(_list)
+ lock (_list)
return _list.Contains(item);
}
public void CopyTo(T[] array, int arrayIndex)
{
- lock(_list)
+ lock (_list)
_list.CopyTo(array, arrayIndex);
}
@@ -52,7 +52,7 @@ namespace Xamarin.Forms
public bool Remove(T item)
{
- lock(_list)
+ lock (_list)
{
if (_list.Remove(item))
{
@@ -74,7 +74,7 @@ namespace Xamarin.Forms
ReadOnlyCollection<T> snap = _snapshot;
if (snap == null)
{
- lock(_list)
+ lock (_list)
_snapshot = snap = new ReadOnlyCollection<T>(_list.ToList());
}
@@ -83,13 +83,13 @@ namespace Xamarin.Forms
public int IndexOf(T item)
{
- lock(_list)
+ lock (_list)
return _list.IndexOf(item);
}
public void Insert(int index, T item)
{
- lock(_list)
+ lock (_list)
{
_list.Insert(index, item);
_snapshot = null;
@@ -104,13 +104,13 @@ namespace Xamarin.Forms
if (snap != null)
return snap[index];
- lock(_list)
+ lock (_list)
return _list[index];
}
set
{
- lock(_list)
+ lock (_list)
{
_list[index] = value;
_snapshot = null;
@@ -120,7 +120,7 @@ namespace Xamarin.Forms
public void RemoveAt(int index)
{
- lock(_list)
+ lock (_list)
{
_list.RemoveAt(index);
_snapshot = null;