Ejemplo n.º 1
0
        /// <summary>
        /// Determines if <paramref name="c"/> is the same as this collection
        /// </summary>
        /// <param name="c"></param>
        /// <returns></returns>
        /// <remarks>Comparison is VERY strict to the point where the group tags must be in the same order</remarks>
        public bool IsSameCollection(TagGroupCollection c)
        {
            if (c == null)
            {
                return(false);
            }

            if (object.ReferenceEquals(this, c))
            {
                return(true);
            }

            if (this.Count == c.Count)
            {
                for (int x = 0; x < this.Count; x++)
                {
                    if (groupTags[x].ID != c.groupTags[x].ID)
                    {
                        return(false);
                    }
                }

                return(true);
            }

            return(false);
        }
Ejemplo n.º 2
0
 static TagGroupCollection()
 {
     Empty = new TagGroupCollection();
 }
Ejemplo n.º 3
0
 public Enumerator(TagGroupCollection collection)
 {
     m_coll  = collection;
     m_index = -1;
 }