From e13cc1e59baf7339f14bead265443525ed3e3f09 Mon Sep 17 00:00:00 2001 From: Ben Adams Date: Thu, 20 Apr 2017 23:58:31 +0100 Subject: [PATCH] Inline List.Clear (dotnet/coreclr#11104) Commit migrated from https://github.com/dotnet/coreclr/commit/91b84a6695d1a77478fc77de9d393c7b26312dd3 --- src/coreclr/src/mscorlib/src/System/Collections/Generic/List.cs | 1 + 1 file changed, 1 insertion(+) diff --git a/src/coreclr/src/mscorlib/src/System/Collections/Generic/List.cs b/src/coreclr/src/mscorlib/src/System/Collections/Generic/List.cs index 67d1668..4e48088 100644 --- a/src/coreclr/src/mscorlib/src/System/Collections/Generic/List.cs +++ b/src/coreclr/src/mscorlib/src/System/Collections/Generic/List.cs @@ -350,6 +350,7 @@ namespace System.Collections.Generic // Clears the contents of List. + [MethodImpl(MethodImplOptions.AggressiveInlining)] public void Clear() { if (RuntimeHelpers.IsReferenceOrContainsReferences()) -- 2.7.4