예제 #1
0
        /// <inheritdoc />
        /// <remarks>Consider using <see cref="Equals(LuminousFlux, double, ComparisonType)"/> for safely comparing floating point values.</remarks>
        public bool Equals(LuminousFlux other)
        {
            if (other is null)
            {
                return(false);
            }

            return(_value.Equals(other.GetValueAs(this.Unit)));
        }
예제 #2
0
        /// <inheritdoc />
        public int CompareTo(LuminousFlux other)
        {
            if (other is null)
            {
                throw new ArgumentNullException();
            }

            return(_value.CompareTo(other.GetValueAs(this.Unit)));
        }
예제 #3
0
 public bool Equals(LuminousFlux other)
 {
     return(_value.Equals(other.GetValueAs(this.Unit)));
 }
예제 #4
0
 public int CompareTo(LuminousFlux other)
 {
     return(_value.CompareTo(other.GetValueAs(this.Unit)));
 }