Empty string and array best practices in C#
Just a very short blog post... for everyone who is not yet known to it. Since .Net Framework 4.6 for two immutable types we got new static fields in the framework:
Array.Empty<T>
string.Empty
// instead of
string foo = "";
byte[] bar = new byte[0...
blog.sigterm.eu1 min read