IT SOLUTIONS
Your full service technology partner! 
-Collapse +Expand
C#
Search C# Group:

Advanced
-Collapse +Expand C# To/From
To/FromCODEGuides
-Collapse +Expand C# Study Test
PRESTWOODCERTIFIED
-Collapse +Expand C# Store
PRESTWOODSTORE

Prestwood eMagazine

January Edition
Subscribe now! It's Free!
Enter your email:

   ► KBProgrammingC#Language Det...   Print This     
C# Code Snippet:
 A flashcard from our C# Flashcards Library
 A code snippet from our C# Code Snippets Page
C# Associative Array (Dictionary)

General Info: Associative Array

A set of unique keys linked to a set of values. Each unique key is associated with a value. Think of it as a two column table. MyArray['CA'] = 'California' MyArray['AR'] = 'Arizona'

Languages Focus: Associative Array

Associative arrays are also known as a dictionary or a hash table in other languages.

C# Associative Array


//using System.Collections.Generic;
 
Dictionary <String, String> airports = new Dictionary <String, String>();
airports.Add("LAX", "Los Angeles"); 
airports.Add("SFO", "San Francisco");
airports.Add("SAN", "San Diego");
MessageBox.Show(airports["LAX"]);

More Info

Definition:  Associative Array

Comments

1 Comments.
Share a thought or comment...
First Comment
Comment 1 of 4

I learn this post almost three times now and I am still not bored of it. https://lyemium.com/melissa-sue-anderson/ This topic is something I really like a lot and I wish you could write more related to this. I would like to be informed courtesy of your weblog posts

Posted 22 months ago

Comment 2 of 4

Amazing posting this is from you. https://mazeministry.com/cheap-parcel-delivery-companies/ I am actually and truly thrilled to read this fantastic post. You‘ve really affected me today. I hope you‘ll carry on to do so!

Posted 22 months ago

Comment 3 of 4

I gotta favorite this website it seems very helpful HP Printer Setup

Posted 21 months ago

Latest Comment
Comment 4 of 4

GotoAssignmenthelp Service is a well-established and prominent name in providing high-quality assignment help online to students since almost a decade. You can trust our academic ghost  writers completely to get best quality write-ups including case studies, research proposals, dissertations and theses, and more. It is the best Assignment Help Kuala Lumpur service. Students should always keep themselves ready to meet the university requirements in order to achieve good grades, moreover, they prefer attending lengthy classes instead of writing assignments. Students who are not comfortable with writing assignments can avail university assignment help malaysia at Gotoassignmenthelp Services comparatively low prices.

Posted 17 months ago
 
Write a Comment...
...
Sign in...

If you are a member, Sign In. Or, you can Create a Free account now.


Anonymous Post (text-only, no HTML):

Enter your name and security key.

Your Name:
Security key = P1286A1
Enter key:
Code Contributed By Mike Prestwood:

Mike Prestwood is a drummer, an author, and creator of the PrestwoodBoards online community. He is the President & CEO of Prestwood IT Solutions. Prestwood IT provides Coding, Website, and Computer Tech services. Mike has authored 6 computer books and over 1,200 articles. As a drummer, he maintains play-drums.com and has authored 3 drum books. If you have a project you wish to discuss with Mike, you can send him a private message through his PrestwoodBoards home page or call him 9AM to 4PM PST at 916-726-5675 x205.

Visit Profile

 KB Article #101513 Counter
26000
Since 11/4/2008
Go ahead!   Use Us! Call: 916-726-5675  Or visit our new sales site: 
www.prestwood.com


©1995-2022 Prestwood IT Solutions.   [Security & Privacy]