Three a day keeps the stagnation away!
What are C# Tuples? – .NET “Gotcha” Interview Questions

What are C# Tuples? – .NET “Gotcha” Interview Questions

C# tuples are a Gotcha! programming interview question because their use is so rare and so wrapped in mystery that it’s a good test of your knowledge of the C# language. Back in Dotnet 4.0, tuples were of limited value. You could only have eight items in a tuple, they were immutable and you accessed them through a funky syntax. Today with the advent of the value tuple, modern Dotnet tuples can act as lightweight “backpacks” for multiple datatypes and they are especially useful if you have to return multiple values from an asynchronous method.

Read more: https://youtu.be/6-q8zyKtSok

Leave a Reply

Your email address will not be published. Required fields are marked *