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 ) ;
}
}
}
}
dXNpbmcgU3lzdGVtOwp1c2luZyBTeXN0ZW0uQ29sbGVjdGlvbnMuR2VuZXJpYzsKCm5hbWVzcGFjZSBBcnRpY3Vsb3MuUHJlZ3VudGEuUDEyMjAKewogICAgcHVibGljIGNsYXNzIFVzb0RpY3Rpb25hcnkKICAgIHsKICAgICAgICBwdWJsaWMgc3RhdGljIHZvaWQgTWFpbigpCiAgICAgICAgewogICAgICAgICAgICBEaWN0aW9uYXJ5PHN0cmluZywgc3RyaW5nPiBhcGVydHVyYSA9IG5ldyBEaWN0aW9uYXJ5PHN0cmluZywgc3RyaW5nPigpOwogICAgICAgICAgICAKICAgICAgICAgICAgLy8gQXNvY2lhY2nDs24gYXJjaGl2b3M6CiAgICAgICAgICAgIGFwZXJ0dXJhLkFkZCgicG5nIiwgIlNuYWdJdCBFZGl0b3IiKTsKICAgICAgICAgICAgYXBlcnR1cmEuQWRkKCJ0eHQiLCAiTm90ZXBhZCsrIik7CiAgICAgICAgICAgIGFwZXJ0dXJhLkFkZCgiaHRtbCIsICJHb29nbGUgQ2hyb21lIik7CiAgICAgICAgICAgIGFwZXJ0dXJhLkFkZCgiZG9jeCIsICJNaWNyb3NvZnQgV29yZCIpOwogICAgICAgICAgICAKICAgICAgICAgICAgZm9yZWFjaChLZXlWYWx1ZVBhaXI8c3RyaW5nLCBzdHJpbmc+IGt2cCBpbiBhcGVydHVyYSkKICAgICAgICAgICAgewogICAgICAgICAgICAgICAgQ29uc29sZS5Xcml0ZUxpbmUgKCJMYSBleHRlbnNpw7NuIGB7MH1gIGVzdMOhIGFzb2NpYWRhIGNvbiBgezF9YC4iLCAKICAgICAgICAgICAgICAgICAgICBrdnAuS2V5LCBrdnAuVmFsdWUpOwogICAgICAgICAgICB9CiAgICAgICAgfQogICAgfQp9