Exemplo n.º 1
0
 /// <summary>
 ///		Compares the current <see cref="NegativeInt32False"/> with another <see cref="NegativeInt32False"/> and returns an integer that indicates whether the current <see cref="NegativeInt32False"/> precedes, follows, or occurs in the same position in the sort order as the other <see cref="NegativeInt32False"/>.
 /// </summary>
 /// <param name="other">An <see cref="NegativeInt32False"/> to compare with this <see cref="NegativeInt32False"/>.</param>
 /// <returns>
 ///		A value that indicates the relative order of the <see cref="NegativeInt32False"/>s being compared. The return value has these meanings:
 ///		<list type="table">
 ///			<listheader>
 ///				<term>Value</term>
 ///				<term>Meaning</term>
 ///			</listheader>
 ///			<item>
 ///				<description>Less than zero</description>
 ///				<description>This <see cref="NegativeInt32False"/> precedes <paramref name="other" /> in the sort order.</description>
 ///			</item>
 ///			<item>
 ///				<description>Zero</description>
 ///				<description>This <see cref="NegativeInt32False"/> occurs in the same position in the sort order as <paramref name="other" />.</description>
 ///			</item>
 ///			<item>
 ///				<description>Greater than zero</description>
 ///				<description>This <see cref="NegativeInt32False"/> follows <paramref name="other" /> in the sort order.</description>
 ///			</item>
 ///		</list>
 /// </returns>
 public int CompareTo(NegativeInt32False other) => value.CompareTo(other.value);
Exemplo n.º 2
0
 /// <summary>
 ///		Indicates whether the current <see cref="NegativeInt32False"/> is equal to another <see cref="NegativeInt32False"/>.
 /// </summary>
 /// <param name="other">An <see cref="NegativeInt32False"/> to compare with this <see cref="NegativeInt32False"/>.</param>
 /// <returns>
 ///		<see langword="true"/> if the current <see cref="NegativeInt32False"/> is equal to the <paramref name="other" /> parameter; otherwise, <see langword="false"/>.
 /// </returns>
 public bool Equals(NegativeInt32False other) => value.Equals(other.value);