2 using System
.Collections
;
4 namespace Igloo
.Clinic
.Domain
6 public class Cart
: ICart
8 private IList _items
= new ArrayList();
12 public int Add(object value)
14 return _items
.Add(value);
22 public bool Contains(object value)
24 return _items
.Contains(value);
27 public int IndexOf(object value)
29 return _items
.IndexOf(value);
32 public void Insert(int index
, object value)
34 _items
.Insert(index
, value);
37 public bool IsFixedSize
39 get { return _items.IsFixedSize; }
42 public bool IsReadOnly
44 get { return _items.IsReadOnly; }
47 public void Remove(object value)
52 public void RemoveAt(int index
)
54 _items
.RemoveAt(index
);
57 public object this[int index
]
59 get { return _items[index]; }
60 set { _items[index] = value; }
65 #region ICollection Members
67 public void CopyTo(Array array
, int index
)
69 _items
.CopyTo(array
, index
);
74 get { return _items.Count; }
77 public bool IsSynchronized
79 get { return _items.IsSynchronized; }
82 public object SyncRoot
84 get { return _items.SyncRoot; }
89 #region IEnumerable Members
91 public IEnumerator
GetEnumerator()
93 return _items
.GetEnumerator(); ;