C# 12 Spread Operator Performance Pitfalls
Coding Tutorials Coding Tutorials
14.4K subscribers
1,175 views
68

 Published On Dec 8, 2023

Visual Studio gives us lots of hints on how to improve our code. Mostly it's right. Sometimes it's dead wrong.

Source code available at: https://github.com/JasperKent/Spread-...

Topics include:
- The various ways of creating an empty array
- The performance benefits of using a predefined empty array
- How all ways of creating an empty string work the same way
- Benchmarking of spread operator performance against alternatives
- Bad advice from Visual Studio

show more

Share/Embed