Kerbal Space Program  1.12.4
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Events Macros
Static Public Member Functions | List of all members
Smooth.Comparisons.Comparisons Class Reference

Provides various methods for creating comparisons. More...

Static Public Member Functions

static Comparison< Nullable< T > > NullableNullsFirst< T > (Comparison< T > comparison)
 Converts the specified comparison for value type T into a comparison for Nullable<T>s, with nulls preceeding non-nulls. More...
 
static Comparison< Nullable< T > > NullableNullsLast< T > (Comparison< T > comparison)
 Converts the specified comparison for value type T into a comparison for Nullable<T>s, with nulls suceeding non-nulls. More...
 
static Comparison< T > NullsFirst< T > (Comparison< T > comparison)
 Prepends null sorting to the specified reference type comparison, with nulls preceeding non-nulls. More...
 
static Comparison< T > NullsLast< T > (Comparison< T > comparison)
 Prepends null sorting to the specified reference type comparison, with nulls suceeding non-nulls. More...
 
static Comparison< T > Reverse< T > (Comparison< T > comparison)
 Reverses the ordering of the specified comparison. More...
 

Detailed Description

Provides various methods for creating comparisons.

Member Function Documentation

static Comparison<Nullable<T> > Smooth.Comparisons.Comparisons.NullableNullsFirst< T > ( Comparison< T >  comparison)
inlinestatic

Converts the specified comparison for value type T into a comparison for Nullable<T>s, with nulls preceeding non-nulls.

Type Constraints
T :struct 
static Comparison<Nullable<T> > Smooth.Comparisons.Comparisons.NullableNullsLast< T > ( Comparison< T >  comparison)
inlinestatic

Converts the specified comparison for value type T into a comparison for Nullable<T>s, with nulls suceeding non-nulls.

Type Constraints
T :struct 
static Comparison<T> Smooth.Comparisons.Comparisons.NullsFirst< T > ( Comparison< T >  comparison)
inlinestatic

Prepends null sorting to the specified reference type comparison, with nulls preceeding non-nulls.

Type Constraints
T :class 
static Comparison<T> Smooth.Comparisons.Comparisons.NullsLast< T > ( Comparison< T >  comparison)
inlinestatic

Prepends null sorting to the specified reference type comparison, with nulls suceeding non-nulls.

Type Constraints
T :class 
static Comparison<T> Smooth.Comparisons.Comparisons.Reverse< T > ( Comparison< T >  comparison)
inlinestatic

Reverses the ordering of the specified comparison.


The documentation for this class was generated from the following file: