public static CustomLists <T> operator +(CustomLists <T> listOne, CustomLists <T> listTwo) { CustomLists <T> arrayHolder = new CustomLists <T>(); for (int i = 0; i < listOne.count; i++) { arrayHolder.Add(listOne[i]); } for (int i = 0; i < listOne.count; i++) { arrayHolder.Add(listTwo[i]); } return(arrayHolder); }
public static CustomLists <T> operator -(CustomLists <T> listOne, CustomLists <T> listTwo) { CustomLists <T> arrayHolder = new CustomLists <T>(); bool copy = false; for (int i = 0; i < listTwo.count; i++) { for (int j = 0; j < listOne.count; j++) { if (listTwo[i].Equals(listOne[j]) && !copy) { copy = true; } else { arrayHolder.Add(listOne[j]); } } } return(arrayHolder); }
public static void Zip(CustomLists <T> list) { }