Skip to content

Commit

Permalink
ImTools: small perf improve of CopyNonEmpty for .NET 7
Browse files Browse the repository at this point in the history
  • Loading branch information
dadhi committed Apr 28, 2023
1 parent bafe8ce commit da59dde
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/DryIoc/ImTools.cs
Original file line number Diff line number Diff line change
Expand Up @@ -242,7 +242,7 @@ public static T[] Copy<T>(this T[] source)
public static T[] CopyNonEmpty<T>(this T[] source)
{
var copy = new T[source.Length];
Array.Copy(source, 0, copy, 0, source.Length);
Array.Copy(source, copy, source.Length);
return copy;
}

Expand Down

0 comments on commit da59dde

Please sign in to comment.