public bool Equals(HostSource obj) { if (obj == null) { return false; } return Value.Equals(obj.Value, StringComparison.InvariantCultureIgnoreCase); }
/// <summary> /// Adds a host to the source-list. /// </summary> /// <param name="host">The host.</param> public void AddHost(string host) { ThrowIfNoneIsSet(); host.MustNotNull("host"); host.MustNotBeWhiteSpaceOrEmpty("host"); var hostSource = new HostSource(host); mHosts.Add(hostSource); }
public bool Equals(HostSource obj) { if (obj == null) { return(false); } return(Value.Equals(obj.Value, StringComparison.InvariantCultureIgnoreCase)); }