Category: .NET
-
How to return multiple values from a method in C#
There are typically 2 ways that we return values from a method, create a custom type or use multiple out parameters. Well, there is another way that this can be achieved and it’s by using a feature introduced in C# 7 called a tuple. A tuple is a value-type that lets you group data into… Read more