Returns the sort order of the current instance compared to the specified bool .
- value
- A bool to compare to the current instance.
The return value is a negative number, zero, or a positive number reflecting the sort order of the current instance as compared to value. For non-zero return values, the exact value returned by this method is unspecified. The following table defines the return value:
Return Value Condition A negative number Current instance is false and value is true. Zero Current instance == value . Any positive number Current instance is true and value is false.
Note: This method is implemented to support the IComparable<Boolean> interface.
Namespace: System
Assembly: mscorlib (in mscorlib.dll)
Assembly Versions: 2.0.0.0
Since: .NET 2.0