コード例 #1
0
    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();
    }
コード例 #2
0
 public StringsComputer(StringBagAlgorithm bagAlgorithm, List <string> listA, List <string> listB)
 {
     BagAlgorithm = bagAlgorithm;
     FirstList    = listA;
     SecoundList  = listB;
 }