public ContentCollection Copy()
        {
            ContentCollection clone = new ContentCollection();

            // Copy each reference across
            foreach (Content c in base.List)
            {
                clone.Add(c);
            }

            return(clone);
        }
예제 #2
0
        public bool Contains(ContentCollection values)
        {
            foreach (Content c in values)
            {
                // Use base class to process actual collection operation
                if (Contains(c))
                {
                    return(true);
                }
            }

            return(false);
        }