diff --git a/src/Uno.UI/UI/Xaml/Controls/ListViewBase/Deque.cs b/src/Uno.UI/UI/Xaml/Controls/ListViewBase/Deque.cs index 5c9ca8304d1f..051c7d3ed67a 100644 --- a/src/Uno.UI/UI/Xaml/Controls/ListViewBase/Deque.cs +++ b/src/Uno.UI/UI/Xaml/Controls/ListViewBase/Deque.cs @@ -894,7 +894,7 @@ public void Clear() { _offset = 0; Count = 0; - Array.Clear(_buffer, 0, _buffer.Length); + Array.Clear(_buffer); } /// diff --git a/src/Uno.UI/UI/Xaml/SpecializedResourceDictionary.cs b/src/Uno.UI/UI/Xaml/SpecializedResourceDictionary.cs index 1b85abd8fdc8..a2358cf5d56f 100644 --- a/src/Uno.UI/UI/Xaml/SpecializedResourceDictionary.cs +++ b/src/Uno.UI/UI/Xaml/SpecializedResourceDictionary.cs @@ -193,7 +193,7 @@ public void Clear() Debug.Assert(_buckets != null, "_buckets should be non-null"); Debug.Assert(_entries != null, "_entries should be non-null"); - Array.Clear(_buckets, 0, _buckets.Length); + Array.Clear(_buckets); _count = 0; _freeList = -1; diff --git a/src/Uno.UWP/Buffers/DefaultArrayPool.cs b/src/Uno.UWP/Buffers/DefaultArrayPool.cs index 97278744a53a..cfc38e38943c 100644 --- a/src/Uno.UWP/Buffers/DefaultArrayPool.cs +++ b/src/Uno.UWP/Buffers/DefaultArrayPool.cs @@ -208,7 +208,7 @@ public void Return(T[] array, bool clearArray = false) // Clear the array if the user requests if (clearArray) { - Array.Clear(array, 0, array.Length); + Array.Clear(array); } // Return the buffer to its bucket. In the future, we might consider having Return return false