So, I (think I) understand what the in parameter modifier does. But what it does appears to be quite redundant.
C# 7.2 introduced the in modifier for passing arguments by reference with the guarantee that the recipient will not modify the parameter.
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...
How to check if a System.ValueTuple is default? Rough example:I can return a default value in MyMethod using default syntax of C# 7.2. I cannot check for default case back? These are what I tried: