Esempio n. 1
0
 /// <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);
 }
Esempio n. 2
0
 public bool Equals(IIrcConfig other)
 {
     return(IrcConfigHelpers.Equals(this, other));
 }
Esempio n. 3
0
 /// <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));
 }
Esempio n. 4
0
 /// <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));
 }