Ejemplo n.º 1
0
        /// <summary>
        ///
        /// </summary>
        /// <param name="delegate_Foreach_Entry"></param>
        public void Foreach_Entry(DELEGATE_Foreach_Entry delegate_Foreach_Entry)
        {
            bool toBreak = false;

            foreach (KeyValuePair <T1, T2> entry in this.items)
            {
                delegate_Foreach_Entry(entry.Key, entry.Value, ref toBreak);

                if (toBreak)
                {
                    break;
                }
            }
        }
Ejemplo n.º 2
0
        /// <summary>
        ///
        /// </summary>
        /// <param name="delegate_Foreach_Entry"></param>
        public void Foreach_Entry(DELEGATE_Foreach_Entry delegate_Foreach_Entry)
        {
            bool toBreak = false;

            foreach (Couple <T1, T2> entry1 in this.Items)
            {
                delegate_Foreach_Entry(entry1.A, entry1.B, ref toBreak);

                if (toBreak)
                {
                    goto gt_EndMethod;
                }
            }

gt_EndMethod:
            ;
        }
Ejemplo n.º 3
0
        /// <summary>
        ///
        /// </summary>
        /// <param name="delegate_Foreach_Entry"></param>
        public void Foreach_Entry(DELEGATE_Foreach_Entry delegate_Foreach_Entry)
        {
            bool toBreak = false;

            foreach (KeyValuePair <T1, Dictionary <T2, T3> > entry1 in this.items)
            {
                T1 key = entry1.Key;

                foreach (KeyValuePair <T2, T3> entry2 in entry1.Value)
                {
                    delegate_Foreach_Entry(key, entry2.Key, entry2.Value, ref toBreak);

                    if (toBreak)
                    {
                        goto gt_EndMethod;
                    }
                }
            }

gt_EndMethod:
            ;
        }