/// <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); }
/// <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; }