/// <summary> /// Validates the IRC config to ensure no properties are /// bad, such as values being null/empty or negative. /// Only password can be empty, all others need some value in them. /// </summary> /// <exception cref="ValidationException">If this object doesn't validate.</exception> public void Validate() { IrcConfigHelpers.Validate(this); }
public bool Equals(IIrcConfig other) { return(IrcConfigHelpers.Equals(this, other)); }
/// <summary> /// Just returns the base object's hash code. /// </summary> /// <returns>The base object's hash code.</returns> public override int GetHashCode() { return(IrcConfigHelpers.GetHashCode(this)); }
/// <summary> /// Sees if the given object is equal to this instance. /// That is, all properties match. /// </summary> /// <param name="obj">The object to check.</param> /// <returns>True if the given object is equal to this one, else false.</returns> public override bool Equals(object obj) { return(IrcConfigHelpers.Equals(this, obj)); }