Amazines Free Article Archive
www.amazines.com - Tuesday, December 18, 2018
Read about the most recent changes and happenings at Amazines.com
Log into your account or register as a new author. Start submitting your articles right now!
Search our database for articles.
Subscribe to receive articles emailed straight to your email account. You may choose multiple categories.
View our newest articles submitted by our authors.
View our most top rated articles rated by our visitors.
* Please note that this is NOT the ARTICLE manager
Add a new EZINE, or manage your EZINE submission.
Add fresh, free web content to your site such as newest articles, web tools, and quotes with a single piece of code!
Home What's New? Submit/Manage Articles Latest Posts Top Rated Article Search
Google
Subscriptions Manage Ezines
CATEGORIES
 Article Archive
 Advertising (133273)
 Advice (160775)
 Affiliate Programs (34733)
 Art and Culture (73644)
 Automotive (145552)
 Blogs (75006)
 Boating (9841)
 Books (17129)
 Buddhism (4122)
 Business (1328036)
 Business News (426289)
 Business Opportunities (366242)
 Camping (10949)
 Career (72751)
 Christianity (15837)
 Collecting (11636)
 Communication (115049)
 Computers (241941)
 Construction (38971)
 Consumer (49646)
 Cooking (17058)
 Copywriting (6567)
 Crafts (18210)
 Cuisine (7535)
 Current Affairs (20373)
 Dating (45770)
 EBooks (19684)
 E-Commerce (48190)
 Education (185126)
 Electronics (83432)
 Email (6389)
 Entertainment (159789)
 Environment (28928)
 Ezine (3038)
 Ezine Publishing (5443)
 Ezine Sites (1552)
 Family & Parenting (110882)
 Fashion & Cosmetics (196374)
 Female Entrepreneurs (11840)
 Feng Shui (130)
 Finance & Investment (310216)
 Fitness (105827)
 Food & Beverages (62820)
 Free Web Resources (7936)
 Gambling (30211)
 Gardening (25064)
 Government (10517)
 Health (629057)
 Hinduism (2163)
 Hobbies (44026)
 Home Business (91542)
 Home Improvement (251226)
 Home Repair (46099)
 Humor (4806)
 Import - Export (5444)
 Insurance (45093)
 Interior Design (29541)
 International Property (3485)
 Internet (190953)
 Internet Marketing (146283)
 Investment (22822)
 Islam (1168)
 Judaism (1357)
 Law (80450)
 Link Popularity (4592)
 Manufacturing (20810)
 Marketing (98729)
 MLM (14136)
 Motivation (18211)
 Music (26997)
 New to the Internet (9475)
 Non-Profit Organizations (4048)
 Online Shopping (129604)
 Organizing (7797)
 Party Ideas (11854)
 Pets (38083)
 Poetry (2234)
 Press Release (12667)
 Public Speaking (5620)
 Publishing (7522)
 Quotes (2407)
 Real Estate (126602)
 Recreation & Leisure (95239)
 Relationships (87434)
 Research (16153)
 Sales (80293)
 Science & Technology (110126)
 Search Engines (23445)
 Self Improvement (153071)
 Seniors (6221)
 Sexuality (35939)
 Small Business (49277)
 Software (82921)
 Spiritual (23461)
 Sports (116459)
 Tax (7658)
 Telecommuting (34074)
 Travel & Tourism (306927)
 UK Property Investment (3117)
 Video Games (13420)
 Web Traffic (11723)
 Website Design (56785)
 Website Promotion (36556)
 World News (1000+)
 Writing (35758)
Author Spotlight
ANISH SAH

My Name is Anish Sah, I am an Internet Marketing and SEO Expert, Social Media Guru and young Entrepr...more
PHILIP MODY

A. BOOK PUBLISHED: Title of Book Publisher ISBN & Year Status of Publisher 1. Role of Ginger...more
ALFRED MEARS

Former English Teacher; Musician (20+ years); Freelance Writer ...more
MILECIA MCG

Hey there. I've been programming in some way, shape, or form for the past decade. My background is i...more
R JONES

Free Lance writer on a number of subjects. Retired from worldwide service in the US Marines, and ha...more


What is a tuple in C#? by Milecia McG






What is a tuple in C#? by
Article Posted: 11/21/2018
Article Views: 195
Articles Written: 15
Word Count: 411
Article Votes: 0
AddThis Social Bookmark Button

What is a tuple in C#?


 
Computers,Software,Website Design
This isn't something that most web developers know about because tuples aren't commonly used in web development. It's not because they aren't useful because they definitely can be. A tuple is just one of the many good things that gets buried under all of the other good things. So let's dig it up and polish it.

To start with, a tuple is a data structure that has a number of elements with different data types. An important thing to keep in mind is that a tuple is a reference type instead of a value type. That means it doesn't store the data in its own memory space. These store the location of where the data is in memory. Classes are a good example of how a reference type works with the memory.

Anyways, tuples are used in a few ways:

• When you want to hold some values temporarily without making a separate class. It can also be used to hold a database record. • You can return multiple values from a method without needing the out or ref parameters. • You can also pass multiple values to a method with just one parameter.

Now you've dug up what a tuple is, it's time to start polishing it. One thing that makes tuples distinct is that they are immutable. That means you can't change them at all once they have been created. Any properties in that tuple are going to be read-only. It also means that the size of the tuple is fixed after you create it.

There is some good news! In C# 7, tuples have been updated and made better. You don't have to worry about how many values your tuple has (originally, you could only have eight values in a tuple). You can also name your tuple properties instead of using the default super generic property names. And the best part is that all you have to do is install the System.ValueTuple NuGet package.

Hopefully this shed some light on one of the more obscure development tools available to you. Do you have any experience with tuples? Even I don't know a lot of people who do so I'd love to hear what you think in the comments.

-----

Don't forget about that free JavaScript tutorial. It's had over 200 downloads in the past month so it must be good for something. Get your copy and start learning about JavaScript. Click here for your free copy

Related Articles - webdev, beginners, backend, csharp,







Email this Article to a Friend!

Receive Articles like this one direct to your email box!
Subscribe for free today!

 Rate This Article  
Completely useless, should be removed from directory.
Minimal useful information.
Decent and informative.
Great article, very informative and helpful.
A 'Must Read'.

 

Do you Agree or Disagree? Have a Comment? POST IT!

 Reader Opinions 
Submit your comments and they will be posted here.
Make this comment or to the Author only:
Name:
Email:
*Your email will NOT be posted. This is for administrative purposes only.
Comments: *Your Comments WILL be posted to the AUTHOR ONLY if you select PRIVATE and to this PUBLIC PAGE if you select PUBLIC, so write accordingly.
 
Please enter the code in the image:



 Author Login 
LOGIN
Register for Author Account

 

Advertiser Login

 

ADVERTISE HERE NOW!
   Limited Time $60 Offer!
   90  Days-1.5 Million Views  

 

Great Paranormal Romance

World News


LAURA JEEVES

At LeadGenerators, we specialise in content-led Online Marketing Strategies for our clients in the t...more
STEPHEN BYE

Steve Bye is currently a fiction writer, who published his first novel, ‘Looking Forward Through The...more
STEVERT MCKENZIE

Stevert Mckenzie, Travel Enthusiast. ...more
GENE MYERS

Author of four books and two screenplays; frequent magazine contributor. I have four other books "in...more
SUSAN FRIESEN

Susan Friesen, founder of the award-winning web development and digital marketing firm eVision Media...more
NANETTE VICTORIA

Nanette Victoria Spiritual Coach and Intuitive Guide (over 27 years experience) Spiritual Ministe...more
MICHAEL BRESCIANI

Rev Bresciani is the author of two Christian books. One book is an important and concisely written b...more
JAVIER VBOIX

For the time being just a newbie in the Insurance Industry but a quick learner, soon-to-be expert Ja...more
SANDY FISCHEL

Sandy Fischel is the marketing director at And Above All YOGA, a wholly owned division of The Fische...more
CHRISTOPHER EVANS

Christopher is based in the U.K. and is the author and founder of Critical Eye. ...more

HomeLinksAbout UsContact UsTerms of UsePrivacy PolicyFAQResources
Copyright © 2018, All rights reserved.
Some pages may contain portions of text relating to certain topics obtained from wikipedia.org under the GNU FDL license