Esempio n. 1
0
        public object Clone()
        {
            SplitMergeCmdFile clone = new SplitMergeCmdFile();

            clone.MergeListInfo      = (MergeListInfoDefn)this.MergeListInfo.Clone();
            clone.MergeListFileArray = new List <MergeListFiles>();
            foreach (var mergeListFile in this.MergeListFileArray)
            {
                clone.MergeListFileArray.Add((MergeListFiles)mergeListFile.Clone());
            }

            return(clone);
        }
Esempio n. 2
0
        public static bool Compare(SplitMergeCmdFile m1, SplitMergeCmdFile m2)
        {
            if (MergeListInfoDefn.Compare(m1.MergeListInfo, m2.MergeListInfo) == false)
            {
                return(false);
            }

            if (m1.MergeListFileArray.Count != m2.MergeListFileArray.Count)
            {
                return(false);
            }

            for (int iFile = 0; iFile < m1.MergeListFileArray.Count; ++iFile)
            {
                if (MergeListFiles.Compare(m1.MergeListFileArray[iFile], m2.MergeListFileArray[iFile]) == false)
                {
                    return(false);
                }
            }

            return(true);
        }