3 ms·
It's hard to tell exactly what GP is referring to. It could be the parameterized Tuple type, which has built-in implementations for up to 8 fields. But those wi
by jdmichal 11y ago
It's hard to tell exactly what GP is referring to. It could be the parameterized Tuple type, which has built-in implementations for up to 8 fields. But those will all just be named Item1, Item2, etc.
https://msdn.microsoft.com/en-us/library/dd383325%28v=vs.110%29.aspx https://msdn.microsoft.com/en-us/library/dd383325%28v=vs.110...
The conversation makes me lean more towards C# anonymous types, which are just syntactic sugar for creating classes with public, read-only properties. But they feel like creating named, statically-typed tuples.
https://msdn.microsoft.com/en-us/library/bb397696.aspx https://msdn.microsoft.com/en-us/library/bb397696.aspx
- nine_k 11y agoThis is indeed what I referred to. Should work great with `var`. Anonymous types are probably even better.