public SIPUserField CopyOf() { SIPUserField copy = new SIPUserField(); copy.Name = Name; copy.URI = URI.CopyOf(); copy.Parameters = Parameters.CopyOf(); return(copy); }
public SIPURI CopyOf() { SIPURI copy = new SIPURI(); copy.Scheme = Scheme; copy.Host = Host; copy.User = User; if (Parameters.Count > 0) { copy.Parameters = Parameters.CopyOf(); } if (Headers.Count > 0) { copy.Headers = Headers.CopyOf(); } return(copy); }