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

Commit

Permalink
Add comments
Browse files Browse the repository at this point in the history
  • Loading branch information
benaadams committed Feb 22, 2017
1 parent 828225c commit eeeabda
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/mscorlib/src/System/Collections/Generic/List.cs
Expand Up @@ -220,6 +220,7 @@ public void Add(T item)
}
}

// Separated out of List.Add to improve inlinability of both functions
private void AddWithoutResize(T item)
{
var size = _size;
Expand All @@ -228,6 +229,7 @@ private void AddWithoutResize(T item)
_items[size] = item;
}

// Non-inline from List.Add to improve its code quality as uncommon path
[MethodImpl(MethodImplOptions.NoInlining)]
private void AddWithResize(T item)
{
Expand Down

0 comments on commit eeeabda

Please sign in to comment.