Example #1
0
        public void Creating02()
        {
            var fakePeople = new DistinctConcurrentBag <PersonProper>();

            this.personProperCollection.ForEach(p => { fakePeople.Add(p); });

            base.Consumer.Consume(fakePeople);
        }
        private static void ProcessConcurrentDictionary(DistinctConcurrentBag <Guid> ch, int collectionCount)
        {
            Console.WriteLine("DCB Collection Count={0}...", collectionCount);

            for (var iterationCount = 0; iterationCount < collectionCount; iterationCount++)
            {
                ch.Add(Guid.NewGuid());
            }
        }