Posts Tuples In C#
Post
Cancel

Tuples In C#

Often, we want to return more than one value from a class method. Prior to the introduction of tuples in .NET, there were three common ways to do so.

-Out parameters -Class or struct types -Anonymous types returned through a dynamic return type

Tuples solve this problem. Tuples aren’t new to C# or .NET. Tuples were first introduced as a part of .NET Framework 4.0.

http://www.c-sharpcorner.com/article/tuples-in-c-sharp/

origin - http://www.pipiscrew.com/?p=6407 tuples-in-c

This post is licensed under CC BY 4.0 by the author.
Contents

Trending Tags