/// <summary> /// Copies this and sets the specified name. /// </summary> /// <param name="name">The name to set in the copy.</param> /// <returns>a copy of this</returns> public virtual UnifiedConnectionString Copy(string name) { var result = new UnifiedConnectionString(this); if ((object)name != null) { result.Name = name; } return(result); }
/// <summary>Initializes a new instance of the <see cref="UnifiedConnectionString"/> class.</summary> /// <param name="src">The source - can be null.</param> public UnifiedConnectionString(UnifiedConnectionString src) { if ((object)src == null) { // } else { this.Name = src.Name; this.AuthenticationMode = src.AuthenticationMode; this.Url = src.Url; this.Suffix = src.Suffix; this.SecretKey = src.SecretKey; this.User = src.User; this.Password = src.Password; } }