Example #1
0
        /// <summary>
        /// Creates a copy of this <see cref="RasSubEntry"/>.
        /// </summary>
        /// <returns>A new <see cref="DotRas.RasSubEntry"/> object.</returns>
        public object Clone()
        {
            RasSubEntry retval = new RasSubEntry();

            if (this.AlternatePhoneNumbers.Count > 0)
            {
                foreach (string value in this.AlternatePhoneNumbers)
                {
                    retval.AlternatePhoneNumbers.Add(value);
                }
            }

            retval.Device      = this.Device;
            retval.PhoneNumber = this.PhoneNumber;

            return(retval);
        }
Example #2
0
        /// <summary>
        /// Creates a copy of this <see cref="RasSubEntry"/>.
        /// </summary>
        /// <returns>A new <see cref="DotRas.RasSubEntry"/> object.</returns>
        public object Clone()
        {
            RasSubEntry retval = new RasSubEntry();

            if (this.AlternatePhoneNumbers.Count > 0)
            {
                foreach (string value in this.AlternatePhoneNumbers)
                {
                    retval.AlternatePhoneNumbers.Add(value);
                }
            }

            retval.Device = this.Device;
            retval.PhoneNumber = this.PhoneNumber;

            return retval;
        }