Creating a .NET Standard 2.0 library that uses tuples

In this recipe, we will be using C# tuples with our library. Tuples allow you to combine the assignment of multiple variables of varying types in a single statement. For example, you can do this in a single line of code:

(string firstName, string lastName, int yearsOfExperience) = ("Fiqri", "Ismail", 15);

Let's have a look at using tuples in a .NET Standard 2.0 library.

..................Content has been hidden....................

You can't read the all page of ebook, please click here login for view all page.
Reset
3.147.103.202