SystemEX  Lacking
Additional generic collection types missing in .net
SystemEx.Algorythmen.LessEqual< T > Class Template Referencesealed

Provides a boolean comparison that determines whether a is smaller than or equal to b . More...

Inheritance diagram for SystemEx.Algorythmen.LessEqual< T >:
Collaboration diagram for SystemEx.Algorythmen.LessEqual< T >:

Public Member Functions

bool Compare (T a, T b)
 Returns true if a is smaller than or equal to b ; otherwise false.

Detailed Description

Provides a boolean comparison that determines whether a is smaller than or equal to b .

Template Parameters
TThe type of values being compared.

Member Function Documentation

◆ Compare()

bool SystemEx.Algorythmen.LessEqual< T >.Compare ( T a,
T b )

Returns true if a is smaller than or equal to b ; otherwise false.

Parameters
aThe first value to compare.
bThe second value to compare.
Returns
true if a is less than or equal to b ; otherwise false.

Implements SystemEx.Algorythmen.ISimpleCompare< T >.

124 {
125 return Comparer<T>.Default.Compare(a, b) <= 0;
126 }

The documentation for this class was generated from the following file:
  • Comparer.cs