using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
namespace ConsoleApplication1
{
class Program
{
static void Main(string[] args)
{
string numstr = "123456789";
string alpstr = "abcdefghi";
var dic = new Dictionary<char, char>();
numstr.Select((c, i) => new { Key = c, Value = alpstr[i] })
.ToList()
.ForEach(x => {
Console.WriteLine(x);
dic.Add(x.Key, x.Value);
});
}
}
}