With two immutable classes Base and Derived (which derives from Base) I want to define Equality so that
Which would be a valid implementation of ValueTask please? Cache service returns data either from cache or DB.
C# 7.0 introduced value tuples and also some language level support for them. They added the support of single and zero element tuples as well; however, I could not find out any scenario when they could be useful.
Now with C# 7, we can return by ref with return ref. From what I've gathered, references are 32 or 64 bits. Now, if I had a struct Coord with a long X and long Y, that would be 128 bits, so it'd be easier return the coord, (as well...