/// <summary> /// Copies the content to another collection. /// </summary> /// <param name="list">The collection to copy to.</param> public void CopyTo(FRCollectionBase list) { list.Clear(); for (int i = 0; i < Count; i++) { list.Add(List[i] as Base); } }
/// <summary> /// Determines whether two collections are equal. /// </summary> /// <param name="list">The collection to compare with.</param> /// <returns><b>true</b> if collections are equal; <b>false</b> otherwise.</returns> public bool Equals(FRCollectionBase list) { bool result = Count == list.Count; if (result) { for (int i = 0; i < list.Count; i++) { if (List[i] != list.List[i]) { result = false; break; } } } return(result); }