/// <summary> /// Determines whether the specified object is equal to the current object. /// </summary> /// <param name="other">The object to compare with the current object.</param> /// <returns><b>true</b> if the specified object is equal to the current object, otherwise, <b>false</b>.</returns> private bool Equals(RiakJavascriptCommitHook other) { if (object.ReferenceEquals(null, other)) { return(false); } return(string.Equals(name, other.Name)); }
/// <summary> /// Determines whether the one object is <b>not</b> equal to another object. /// </summary> /// <param name="left">The first <see cref="RiakObjectId"/> to compare.</param> /// <param name="right">The other <see cref="RiakObjectId"/> to compare.</param> /// <returns><b>true</b> if the specified object is <b>not</b> equal to the current object, otherwise, <b>false</b>.</returns> public static bool operator !=(RiakJavascriptCommitHook left, RiakJavascriptCommitHook right) { return(!RiakJavascriptCommitHook.Equals(left, right)); }
/// <summary> /// Determines whether the specified object is equal to the current object. /// </summary> /// <param name="other">The object to compare with the current object.</param> /// <returns><b>true</b> if the specified object is equal to the current object, otherwise, <b>false</b>.</returns> private bool Equals(RiakJavascriptCommitHook other) { if (object.ReferenceEquals(null, other)) { return false; } return string.Equals(name, other.Name); }