Esempio n. 1
0
        private void CopyTo(KeyValuePair <TwoKeys <TKey1, TKey2>, TValue>[] array, int arrayIndex = 0)
        {
            ForContinue nextStep = new ForContinue();

            For((i, tkey1, tkey2, tvalue) =>
            {
                array[arrayIndex++] = new KeyValuePair <TwoKeys <TKey1, TKey2>, TValue>(new TwoKeys <TKey1, TKey2>(tkey1, tkey2), tvalue);
                return(nextStep);
            });
        }
Esempio n. 2
0
        public new IEnumerator <KeyValuePair <TwoKeys <TKey1, TKey2>, TValue> > GetEnumerator()
        {
            KeyValuePair <TwoKeys <TKey1, TKey2>, TValue>[] enumerator = new KeyValuePair <TwoKeys <TKey1, TKey2>, TValue> [llista1.Count];
            ForContinue nextStep = new ForContinue();

            For((i, tkey1, tkey2, tvalue) =>
            {
                enumerator[i] = new KeyValuePair <TwoKeys <TKey1, TKey2>, TValue>(new TwoKeys <TKey1, TKey2>(tkey1, tkey2), tvalue);
                return(nextStep);
            });
            return(enumerator.ObtieneEnumerador());
        }