Skip to content
This repository was archived by the owner on Jan 23, 2023. It is now read-only.

Commit 91b84a6

Browse files
benaadamsjkotas
authored andcommitted
Inline List.Clear (#11104)
1 parent eb2d44e commit 91b84a6

File tree

1 file changed

+1
-0
lines changed
  • src/mscorlib/src/System/Collections/Generic

1 file changed

+1
-0
lines changed

src/mscorlib/src/System/Collections/Generic/List.cs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -350,6 +350,7 @@ public int BinarySearch(T item, IComparer<T> comparer)
350350

351351

352352
// Clears the contents of List.
353+
[MethodImpl(MethodImplOptions.AggressiveInlining)]
353354
public void Clear()
354355
{
355356
if (RuntimeHelpers.IsReferenceOrContainsReferences<T>())

0 commit comments

Comments
 (0)