Esempio n. 1
0
        public FOPDataItem Copy()
        {
            var result = new FOPDataItem();

            if (FOPs != null)
            {
                result.FOPs = new FOPList();
                result.FOPs.AddRange(FOPs.Select(fop => fop.Copy()));
            }

            return(result);
        }
Esempio n. 2
0
        public override bool Equals(object obj)
        {
            var other = obj as FOPDataItem;

            if (other == null)
            {
                return(false);
            }

            return(FOPs == null && other.FOPs == null ||
                   FOPs != null && other.FOPs != null && FOPs.Count == other.FOPs.Count && FOPs.All(fop => other.FOPs.Contains(fop)));
        }