Class ComparableUtil.BaseTypeComparerType
- Namespace
- ReFuel.Collections
- Assembly
- ReFuel.Common.dll
public class ComparableUtil.BaseTypeComparerType : IComparer<byte>, IComparer<sbyte>, IComparer<short>, IComparer<ushort>, IComparer<int>, IComparer<uint>, IComparer<long>, IComparer<ulong>, IComparer<float>, IComparer<double>, IComparer<decimal>, IComparer<string>
- Inheritance
-
ComparableUtil.BaseTypeComparerType
- Implements
- Inherited Members
Methods
Compare(byte, byte)
Compares two objects and returns a value indicating whether one is less than, equal to, or greater than the other.
public int Compare(byte x, byte y)
Parameters
Returns
- int
A signed integer that indicates the relative values of
xandy, as shown in the following table.Value Meaning Less than zero xis less thany.Zero xequalsy.Greater than zero xis greater thany.
Compare(decimal, decimal)
Compares two objects and returns a value indicating whether one is less than, equal to, or greater than the other.
public int Compare(decimal x, decimal y)
Parameters
Returns
- int
A signed integer that indicates the relative values of
xandy, as shown in the following table.Value Meaning Less than zero xis less thany.Zero xequalsy.Greater than zero xis greater thany.
Compare(double, double)
Compares two objects and returns a value indicating whether one is less than, equal to, or greater than the other.
public int Compare(double x, double y)
Parameters
Returns
- int
A signed integer that indicates the relative values of
xandy, as shown in the following table.Value Meaning Less than zero xis less thany.Zero xequalsy.Greater than zero xis greater thany.
Compare(short, short)
Compares two objects and returns a value indicating whether one is less than, equal to, or greater than the other.
public int Compare(short x, short y)
Parameters
Returns
- int
A signed integer that indicates the relative values of
xandy, as shown in the following table.Value Meaning Less than zero xis less thany.Zero xequalsy.Greater than zero xis greater thany.
Compare(int, int)
Compares two objects and returns a value indicating whether one is less than, equal to, or greater than the other.
public int Compare(int x, int y)
Parameters
Returns
- int
A signed integer that indicates the relative values of
xandy, as shown in the following table.Value Meaning Less than zero xis less thany.Zero xequalsy.Greater than zero xis greater thany.
Compare(long, long)
Compares two objects and returns a value indicating whether one is less than, equal to, or greater than the other.
public int Compare(long x, long y)
Parameters
Returns
- int
A signed integer that indicates the relative values of
xandy, as shown in the following table.Value Meaning Less than zero xis less thany.Zero xequalsy.Greater than zero xis greater thany.
Compare(sbyte, sbyte)
Compares two objects and returns a value indicating whether one is less than, equal to, or greater than the other.
public int Compare(sbyte x, sbyte y)
Parameters
Returns
- int
A signed integer that indicates the relative values of
xandy, as shown in the following table.Value Meaning Less than zero xis less thany.Zero xequalsy.Greater than zero xis greater thany.
Compare(float, float)
Compares two objects and returns a value indicating whether one is less than, equal to, or greater than the other.
public int Compare(float x, float y)
Parameters
Returns
- int
A signed integer that indicates the relative values of
xandy, as shown in the following table.Value Meaning Less than zero xis less thany.Zero xequalsy.Greater than zero xis greater thany.
Compare(string?, string?)
Compares two objects and returns a value indicating whether one is less than, equal to, or greater than the other.
public int Compare(string? a, string? b)
Parameters
Returns
- int
A signed integer that indicates the relative values of
xandy, as shown in the following table.Value Meaning Less than zero xis less thany.Zero xequalsy.Greater than zero xis greater thany.
Compare(ushort, ushort)
Compares two objects and returns a value indicating whether one is less than, equal to, or greater than the other.
public int Compare(ushort x, ushort y)
Parameters
Returns
- int
A signed integer that indicates the relative values of
xandy, as shown in the following table.Value Meaning Less than zero xis less thany.Zero xequalsy.Greater than zero xis greater thany.
Compare(uint, uint)
Compares two objects and returns a value indicating whether one is less than, equal to, or greater than the other.
public int Compare(uint x, uint y)
Parameters
Returns
- int
A signed integer that indicates the relative values of
xandy, as shown in the following table.Value Meaning Less than zero xis less thany.Zero xequalsy.Greater than zero xis greater thany.
Compare(ulong, ulong)
Compares two objects and returns a value indicating whether one is less than, equal to, or greater than the other.
public int Compare(ulong x, ulong y)
Parameters
Returns
- int
A signed integer that indicates the relative values of
xandy, as shown in the following table.Value Meaning Less than zero xis less thany.Zero xequalsy.Greater than zero xis greater thany.