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

            return(_value.Equals(other.GetValueAs(this.Unit)));
        }
Пример #2
0
        /// <inheritdoc />
        public int CompareTo(Area other)
        {
            if (other is null)
            {
                throw new ArgumentNullException();
            }

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