public static void Add(BMA a) { List <BMA> LA = new List <BMA>(Addresses); LA.Add(a); Addresses = LA.ToArray(); LA.Clear(); LA = null; }
public static void Remove(BMA a, bool all) { BMA[] BA = Addresses; for (int i = 0; i < BA.Length; i++) { if (BA[i].Equals(a)) { RemoveAt(i--); if (!all) { break; } } } }