using System.Collections.Generic;
public static void Main()
int[] aDbl = new int[3] {10, 15, 20};
int[] bDbl = new int[3] {10, 15, 20};
int[] cDbl = new int[3] {10, 15, 20};
Dictionary<int,int> c = new Dictionary<int, int>();
Dictionary<int,Dictionary<int,int>> b = new Dictionary<int,Dictionary<int,int>>();
Dictionary<int ,Dictionary<int,Dictionary<int,int>> > a = new Dictionary<int, Dictionary<int,Dictionary<int,int>> >();
dDbl = (int[]) aDbl.Clone();
foreach (int row in cDbl)
foreach (int row in bDbl)
b.Add(row,new Dictionary<int, int>(c));
foreach (int row in aDbl)
a.Add(row,new Dictionary<int,Dictionary<int,int>>(b));
Dictionary<int,Dictionary<int,int>> dd = new Dictionary<int,Dictionary<int,int>>(b);
Console.WriteLine(dd[15][20]);
Console.WriteLine(a[20][15][20]);
Console.WriteLine(aDbl[1]);