protected override void Store() { IList <string> list = new ArrayList4 <string>(); for (int i = 0; i < SIZE; i++) { list.Add(i.ToString()); } Store(list); }
public static IList <int> CreateArrayList(int count) { IList <int> list = new ArrayList4 <int>(); for (int i = 0; i < count; i++) { list.Add(ValueForIndex(i)); } return(list); }
public void AddUser(User user) { if (_users.Contains(user)) { return; } user.AddedToGroup(this); _users.Add(user); }
/// <summary> /// Notifies the user it was added to a group. /// </summary> internal void AddedToGroup(Group g) { _groups.Add(g); }
public virtual void AddItem(OrderItem item) { Activate(ActivationPurpose.Read); _items.Add(item); }