Inline List.Clear (dotnet/coreclr#11104)
authorBen Adams <thundercat@illyriad.co.uk>
Thu, 20 Apr 2017 22:58:31 +0000 (23:58 +0100)
committerJan Kotas <jkotas@microsoft.com>
Thu, 20 Apr 2017 22:58:31 +0000 (17:58 -0500)
Commit migrated from https://github.com/dotnet/coreclr/commit/91b84a6695d1a77478fc77de9d393c7b26312dd3

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

index 67d1668..4e48088 100644 (file)
@@ -350,6 +350,7 @@ namespace System.Collections.Generic
 
 
         // Clears the contents of List.
+        [MethodImpl(MethodImplOptions.AggressiveInlining)]
         public void Clear()
         {
             if (RuntimeHelpers.IsReferenceOrContainsReferences<T>())