Replace Array.Copy(src, dst, int) calls with Array.Copy(src, 0, dst, 0, int) by stephentoub · Pull Request #21756 · dotnet/coreclr (original) (raw)

stephentoub

The former calls GetLowerBound(0) on both src and dst, which is unnecessary when the arrays are T[] and thus always have a lower bound of 0.

@stephentoub

…0, int)

The former calls GetLowerBound(0) on both src and dst, which is unnecessary when the arrays are T[] and thus always have a lower bound of 0.

jkotas

picenka21 pushed a commit to picenka21/runtime that referenced this pull request

Feb 18, 2022

@stephentoub @jkotas

…0, int) (dotnet/coreclr#21756)

The former calls GetLowerBound(0) on both src and dst, which is unnecessary when the arrays are T[] and thus always have a lower bound of 0.

Commit migrated from dotnet/coreclr@6911791