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

            return(_value.Equals(other.GetValueAs(this.Unit)));
        }
        /// <inheritdoc />
        public int CompareTo(Permeability other)
        {
            if (other is null)
            {
                throw new ArgumentNullException();
            }

            return(_value.CompareTo(other.GetValueAs(this.Unit)));
        }
Beispiel #3
0
 /// <inheritdoc />
 /// <remarks>Consider using <see cref="Equals(Permeability, double, ComparisonType)"/> for safely comparing floating point values.</remarks>
 public bool Equals(Permeability other)
 {
     return(_value.Equals(other.GetValueAs(this.Unit)));
 }
Beispiel #4
0
 /// <inheritdoc />
 public int CompareTo(Permeability other)
 {
     return(_value.CompareTo(other.GetValueAs(this.Unit)));
 }