Creating a dictionary in .NET Part 2 – Adding elements

Now it’s time to add two elements to the dictionary.

openWith.Add("txt", "notepad.exe");
openWith.Add("bmp", "paint.exe");

In the next post we’ll check our key for the value.

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out /  Change )

Twitter picture

You are commenting using your Twitter account. Log Out /  Change )

Facebook photo

You are commenting using your Facebook account. Log Out /  Change )

Connecting to %s

%d bloggers like this: