/// <summary> /// Determines whether the specified <see cref="System.Object"/> is equal to this instance. /// </summary> /// <param name="other">The <see cref="System.Object"/> to compare with this instance.</param> /// <returns> /// <c>true</c> if the specified <see cref="System.Object"/> is equal to this instance; otherwise, <c>false</c>. /// </returns> /// <exception cref="T:System.NullReferenceException"> /// The <paramref name="other"/> parameter is null. /// </exception> public bool Equals(IBindableEnum <TEnum> other) { return(_value.Equals(other.Value)); }
/// <summary> /// Compares the current object with another object of the same type. /// </summary> /// <param name="other">An object to compare with this object.</param> /// <returns> /// A 32-bit signed integer that indicates the relative order of the objects being compared. /// The return value has the following meanings: Value Meaning Less than zero This object is less /// than the other parameter. Zero This object is equal to other. Greater than zero This object is /// greater than other. /// </returns> public int CompareTo(IBindableEnum <TEnum> other) { return(_value.CompareTo(other)); }