Inline List.Clear (#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)
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>())