/// <summary> /// Determines if this <see cref="InstalledValue{K}"/> is equal to the given /// <see cref="string"/>. /// </summary> /// <remarks> /// A <see cref="InstalledValue{K}"/>s is equal to a <see cref="string"/> if and only if /// this <see cref="InstalledValue{K}"/>'s <see cref="InstalledValue{K}.InstallerKey"/> /// is equal to the <see cref="string"/>. /// </remarks> /// <param name="other">The <see cref="string"/> to compare to this <see cref="InstalledValue{K}"/>.</param> /// <returns><c>true</c> if the this <see cref="InstalledValue{K}"/> is equal to the given /// <see cref="string"/>; /// <c>false</c> otherwise.</returns> public bool Equals(string other) { return(InstallerKey.Equals(other)); }
/// <summary> /// Determines if this <see cref="InstalledValue{K}"/> is equal to the given /// <see cref="InstalledValue{K}"/>. /// </summary> /// <remarks> /// Two <see cref="InstalledValue{K}"/>s are equal if and only if their /// <see cref="InstalledValue{K}.InstallerKey"/>s equal. /// </remarks> /// <param name="other">The <see cref="InstalledValue{K}"/> to compare to this one.</param> /// <returns><c>true</c> if the two <see cref="InstalledValue{K}"/>s are equal; /// <c>false</c> otherwise.</returns> public bool Equals(InstalledValue <K> other) { return(InstallerKey.Equals(other.InstallerKey)); }