Tutorial on Tuple in C#.Net 4.0

InfoPath alternatives for form designing SharePoint

In this post we will discuss about Tuple in C#.Net 4.0. Also you can check out:

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

– Bind gridview 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);

0r:

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

Similar SharePoint 2013 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 →

Leave a Reply