Skip to content

Commit 5dfd514

Browse files
committed
Revert "Update nanoFramework.System.Collections/Collections/Generic/List.cs"
This reverts commit f591b88.
1 parent af84b1a commit 5dfd514

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

  • nanoFramework.System.Collections/Collections/Generic

nanoFramework.System.Collections/Collections/Generic/List.cs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -309,8 +309,8 @@ public void Clear()
309309
{
310310
_version++;
311311

312-
// Only clear the array if T is a reference type
313-
if (!typeof(T).IsValueType)
312+
// TODO
313+
if (true) // RuntimeHelpers.IsReferenceOrContainsReferences<T>())
314314
{
315315
int size = _size;
316316
_size = 0;

0 commit comments

Comments
 (0)