Ejemplo n.º 1
0
        /// <summary>
        /// Concatenate a collection to this collection.
        /// </summary>
        /// <param name="coll">Collection to concatenate</param>
        public void Concat(PortCollection coll)
        {
            IEnumerator enumColl = coll.GetEnumerator();

            while (enumColl.MoveNext())
            {
                Port curObj = enumColl.Current as Port;
                if (curObj != null)
                {
                    this.Add(curObj);
                }
            }
        }
Ejemplo n.º 2
0
 /// <summary>
 /// Copy constructor.
 /// </summary>
 /// <param name="src">Source object to copy from</param>
 public PortCollection(PortCollection src) : base(src)
 {
 }