5 ms·
You can make methods easily return multiple values in C# with Tuples. They are very handy.
by spo81rty 13y ago
You can make methods easily return multiple values in C# with Tuples. They are very handy.
- mattmanser 13y agoFor the sake of the sanity of your future co-workers, I really hope you are kidding.
- MichaelGG 13y agoFor extremely low values of "easily". C#'s lack of pattern matching and tuple syntax makes dealing with tuples in C# a complete pain in the ass. It's ugly, annoying, code, in general. P.S. You can do this in pretty much any language. Just define pair, triplet, etc.