Class Compare
- Namespace
- Dassie.Extensions
- Assembly
- Dassie.Core.dll
Provides implementations of the three-way comparison operator, <=>.
public static class Compare
- Inheritance
-
Compare
- Inherited Members
Methods
op_LessEqualGreater(byte, byte)
Implements a three-way comparison.
public static int op_LessEqualGreater(byte a, byte b)
Parameters
Returns
- int
Returns
0ifais equal tob; otherwise, returns-1ifais less thanb; otherwise, returns1.
op_LessEqualGreater(decimal, decimal)
Implements a three-way comparison.
public static int op_LessEqualGreater(decimal a, decimal b)
Parameters
Returns
- int
Returns
0ifais equal tob; otherwise, returns-1ifais less thanb; otherwise, returns1.
op_LessEqualGreater(double, double)
Implements a three-way comparison.
public static int op_LessEqualGreater(double a, double b)
Parameters
Returns
- int
Returns
0ifais equal tob; otherwise, returns-1ifais less thanb; otherwise, returns1.
op_LessEqualGreater(Half, Half)
Implements a three-way comparison.
public static int op_LessEqualGreater(Half a, Half b)
Parameters
Returns
- int
Returns
0ifais equal tob; otherwise, returns-1ifais less thanb; otherwise, returns1.
op_LessEqualGreater(Int128, Int128)
Implements a three-way comparison.
public static int op_LessEqualGreater(Int128 a, Int128 b)
Parameters
Returns
- int
Returns
0ifais equal tob; otherwise, returns-1ifais less thanb; otherwise, returns1.
op_LessEqualGreater(short, short)
Implements a three-way comparison.
public static int op_LessEqualGreater(short a, short b)
Parameters
Returns
- int
Returns
0ifais equal tob; otherwise, returns-1ifais less thanb; otherwise, returns1.
op_LessEqualGreater(int, int)
Implements a three-way comparison.
public static int op_LessEqualGreater(int a, int b)
Parameters
Returns
- int
Returns
0ifais equal tob; otherwise, returns-1ifais less thanb; otherwise, returns1.
op_LessEqualGreater(long, long)
Implements a three-way comparison.
public static int op_LessEqualGreater(long a, long b)
Parameters
Returns
- int
Returns
0ifais equal tob; otherwise, returns-1ifais less thanb; otherwise, returns1.
op_LessEqualGreater(nint, nint)
Implements a three-way comparison.
public static int op_LessEqualGreater(nint a, nint b)
Parameters
Returns
- int
Returns
0ifais equal tob; otherwise, returns-1ifais less thanb; otherwise, returns1.
op_LessEqualGreater(sbyte, sbyte)
Implements a three-way comparison.
public static int op_LessEqualGreater(sbyte a, sbyte b)
Parameters
Returns
- int
Returns
0ifais equal tob; otherwise, returns-1ifais less thanb; otherwise, returns1.
op_LessEqualGreater(float, float)
Implements a three-way comparison.
public static int op_LessEqualGreater(float a, float b)
Parameters
Returns
- int
Returns
0ifais equal tob; otherwise, returns-1ifais less thanb; otherwise, returns1.
op_LessEqualGreater(UInt128, UInt128)
Implements a three-way comparison.
public static int op_LessEqualGreater(UInt128 a, UInt128 b)
Parameters
Returns
- int
Returns
0ifais equal tob; otherwise, returns-1ifais less thanb; otherwise, returns1.
op_LessEqualGreater(ushort, ushort)
Implements a three-way comparison.
public static int op_LessEqualGreater(ushort a, ushort b)
Parameters
Returns
- int
Returns
0ifais equal tob; otherwise, returns-1ifais less thanb; otherwise, returns1.
op_LessEqualGreater(uint, uint)
Implements a three-way comparison.
public static int op_LessEqualGreater(uint a, uint b)
Parameters
Returns
- int
Returns
0ifais equal tob; otherwise, returns-1ifais less thanb; otherwise, returns1.
op_LessEqualGreater(ulong, ulong)
Implements a three-way comparison.
public static int op_LessEqualGreater(ulong a, ulong b)
Parameters
Returns
- int
Returns
0ifais equal tob; otherwise, returns-1ifais less thanb; otherwise, returns1.
op_LessEqualGreater(nuint, nuint)
Implements a three-way comparison.
public static int op_LessEqualGreater(nuint a, nuint b)
Parameters
Returns
- int
Returns
0ifais equal tob; otherwise, returns-1ifais less thanb; otherwise, returns1.