示例#1
0
        /// <summary>
        /// copy constructor -- this returns a copy of the structure,
        /// but it does not duplicate the data (it just keeps a reference to the original)
        /// </summary>
        /// <param name="rhs">The SamplePointList to be copied</param>
        public SamplePointList(SamplePointList rhs)
        {
            XType = rhs.XType;
            YType = rhs.YType;

            // Don't duplicate the data values, just copy the reference to the ArrayList
            this.list = rhs.list;

            //foreach ( Sample sample in rhs )
            //	list.Add( sample );
        }
示例#2
0
        /// <summary>
        /// copy constructor -- this returns a copy of the structure,
        /// but it does not duplicate the data (it just keeps a reference to the original)
        /// </summary>
        /// <param name="rhs">The SamplePointList to be copied</param>
        public SamplePointList( SamplePointList rhs )
        {
            XType = rhs.XType;
            YType = rhs.YType;

            // Don't duplicate the data values, just copy the reference to the ArrayList
            this.list = rhs.list;

            //foreach ( Sample sample in rhs )
            //	list.Add( sample );
        }