EnjoySharePoint YouTube Channel

Tutorial on Tuple in C#.Net 4.0

In this post, we will discuss the Tuple in C#.Net 4.0.

Get Office 365 Enterprise E3 Or Business Premium Subscription & Try out all the features

Also, you can check out:

– Call stored procedure in Asp.Net using C#.Net

– Bindgrid view using datareader in asp.net

– Filter Attribute in MVC

– There are some new features in .Net 4.0, one of these is Tuple.

– Tuple actually a concept of F#, But in .Net 4.0 microsoft introduced Tuples to .Net.

– Arrays combine objects of the same type; tuples can combine objects of different types.

– .NET 4 defines eight generic Tuple classes and one static Tuple class.

– Tuple can be instantiated by Tuple constructor or the static Tuple.Create() method.

– Tuple. Create method has 8 overloads.

Here is an example that is provided in msdn:
var population = new Tuple<string, int, int, int, int, int, int>(
“New York”, 7891957, 7781984,
7894862, 7071639, 7322564, 8008278);


Tuple<int, string> tuple = new Tuple<int, string>(1, “aspdotnethelp”);

Check out Best Alternative to InfoPath -> Try Now
You May Also like the Following SharePoint Tutorials:

About Bijay Kumar

I am Bijay from Odisha, India. Currently working in my own venture TSInfo Technologies in Bangalore, India. I am Microsoft Office Servers and Services (SharePoint) MVP (5 times). I works in SharePoint 2016/2013/2010, SharePoint Online Office 365 etc. Check out My MVP Profile.. I also run popular SharePoint web site SharePointSky.com

View all posts by Bijay Kumar →