Exemplo n.º 1
0
 /// <summary>
 /// Returns the hash code for this instance.
 /// </summary>
 /// <returns>
 /// A 32-bit signed integer hash code.
 /// </returns>
 public override Int32 GetHashCode() => CubicMeters.GetHashCode();
Exemplo n.º 2
0
 /// <summary>
 /// Converts the current <see cref="Volume" /> to an array of bytes.
 /// </summary>
 /// <returns>
 /// An array of bytes representing the current <see cref="Volume" />.
 /// </returns>
 public Byte[] ToByteArray() => CubicMeters.ToByteArray();
Exemplo n.º 3
0
 /// <summary>
 /// Compares the current <see cref="Volume" /> to the supplied object and returns an indication of their relative values.
 /// </summary>
 /// <param name="other">
 /// The <see cref="Volume" /> to compare to this instance.
 /// </param>
 /// <returns>
 /// Negative one if this instance is less than the supplied instance; one if this instance is greater than the supplied
 /// instance; zero if they are equal.
 /// </returns>
 public Int32 CompareTo(Volume other) => CubicMeters.CompareTo(other.CubicMeters);