Inheritance: IEnumerable
Example #1
0
 private static void Print(AtomicList <Atomic <int> > list)
 {
     Console.WriteLine("---");
     foreach (var value in list)
     {
         Console.WriteLine(value);
     }
 }
Example #2
0
        static void Main(string[] args)
        {
            var list = new AtomicList <Atomic <int> > {
                2, 3
            };

            using (var scope = new AmbientAtomicScope())
            {
                list[0].Value = -1;
                list.Add(77);
                Print(list);
            }
            Print(list);
        }
Example #3
0
 public DbSimulation(AtomicList <MiniRedisData> atomicData)
 {
     _atomicData = atomicData;
 }