Q:

Two arrays into one Dictinary C#

I would like to create a
Dictionary<string, int[]> dict
out of two arrays(different length):
string[] keys = { "A", "B", "A", "D", "C","E" };
string[] values = { green, blue, yellow};

The results:
["A"] = {green} 
["B"] = {blue}
["D"] = {yellow}
["C"] = {green}
["E"] = {blue}

A:

Your dictionary in that case would be Dictionary<string,string>.
From your sample, it looks like you want the modulus (%) operator for the values array to deal with the array length differences. 
var dict = new Dictionary<string,string>();
for(int i = 0; i < keys.Length; i++) { 
   var j = i % values.Length; 
   dict[keys[i]] = values[j];
}

