Exemplo n.º 1
0
 public TypeComparer(params BT.TransportAddress.TAType[] ord)
 {
     _ordering = new SCG.Dictionary <BT.TransportAddress.TAType, int>(ord.Length);
     for (int i = 0; i < ord.Length; i++)
     {
         _ordering[ord[i]] = i;
     }
 }
Exemplo n.º 2
0
        private SCG.Dictionary <int, SCG.Dictionary <int, bool[]>[]> MakeSubDictionary(int id)
        {
            var items      = Util.Generate(id, subId => MakeSubSubDictionaries(id, subId));
            var dictionary = new SCG.Dictionary <int, SCG.Dictionary <int, bool[]>[]>();

            for (var i = 0; i < items.Length; i++)
            {
                dictionary.Add(i, items[i]);
            }
            return(dictionary);
        }