public static void Main() { List <string> listA = new List <string>() { "A", "B", "C", "D" }; List <string> listB = new List <string>() { "E", "F", "C", "H" }; StringBagAlgorithm sba = new StringBagAlgorithm(); StringsComputer sc = new StringsComputer() { FirstList = listA, SecoundList = listB, BagAlgorithm = sba }; sc.ComputeSecondList(); }
public StringsComputer(StringBagAlgorithm bagAlgorithm, List <string> listA, List <string> listB) { BagAlgorithm = bagAlgorithm; FirstList = listA; SecoundList = listB; }