Example #1
0
 public void CountItemsInChain(ref int par_intCount)
 {
     //
     //Added 3/2/2020  thomas downes
     //
     if (NextValue != null)
     {
         par_intCount++;
         NextValue.CountItemsInChain(ref par_intCount);
     }
 }
        public int Count()
        {
            //
            //Added 3/2/2020 td
            //
            int intCount = (mod_firstItem == null ? 0 : 1);

            if (mod_firstItem != null)
            {
                mod_firstItem.CountItemsInChain(ref intCount);
            }

            return(intCount);
        }