Fix the build.
[castle.git] / Experiments / Castle.Igloo / Igloo.Clinic.Domain / Cart.cs
blob1be6a6f86fed41b3c78afd275ad143b385b762a9
1 using System;
2 using System.Collections;
4 namespace Igloo.Clinic.Domain
6 public class Cart : ICart
8 private IList _items = new ArrayList();
10 #region IList Members
12 public int Add(object value)
14 return _items.Add(value);
17 public void Clear()
19 _items.Clear();
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)
49 _items.Remove(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; }
63 #endregion
65 #region ICollection Members
67 public void CopyTo(Array array, int index)
69 _items.CopyTo(array, index);
72 public int Count
74 get { return _items.Count; }
77 public bool IsSynchronized
79 get { return _items.IsSynchronized; }
82 public object SyncRoot
84 get { return _items.SyncRoot; }
87 #endregion
89 #region IEnumerable Members
91 public IEnumerator GetEnumerator()
93 return _items.GetEnumerator(); ;
96 #endregion