With the new collection expressions of C# 12 you can also just write
unsortedArray2 = [.. unsortedArray];