Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- using System;
- using System.Collections.Generic;
- namespace Articulos.Pregunta.P1220
- {
- public class UsoDictionary
- {
- public static void Main()
- {
- Dictionary<string, string> apertura = new Dictionary<string, string>();
- // Asociación archivos:
- apertura.Add("png", "SnagIt Editor");
- apertura.Add("txt", "Notepad++");
- apertura.Add("html", "Google Chrome");
- apertura.Add("docx", "Microsoft Word");
- foreach(KeyValuePair<string, string> kvp in apertura)
- {
- Console.WriteLine ("La extensión `{0}` está asociada con `{1}`.",
- kvp.Key, kvp.Value);
- }
- }
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement