コード例 #1
0
        private static ICompare GetCompareOption(CompareFunctionEnum objectToCompare)
        {
            ICompare Strategy = null;

            switch (objectToCompare)
            {
            case CompareFunctionEnum.Dup:
                Strategy = new DuplicateCompare();
                break;

            case CompareFunctionEnum.Unique:
                Strategy = new UniqueCompare();
                break;

            case CompareFunctionEnum.Unique1f2:
                Strategy = new UniqueinConefromCtwoCompare();
                break;

            case CompareFunctionEnum.Unique2f1:
                Strategy = new UniqueinCtwofromConeCompare();
                break;

            default:
                break;
            }
            return(Strategy);
        }
コード例 #2
0
 public CompareProcess(List <string> column1, List <string> column2, CompareFunctionEnum function)
 {
     _function = function;
     _column1  = column1;
     _column2  = column2;
 }