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: github.com/Jas...
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
4 окт 2024