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.Compare.Factory Class Reference

Static Public Member Functions

static Option< IComparer< T > > Comparer< T > ()
 Returns an option containing a sort order comparer for type T, or None if no comparer can be created. More...
 
static Option
< IEqualityComparer< T > > 
EqualityComparer< T > ()
 Returns an option containing an equality comparer for type T, or None if no comparer can be created. More...
 
static Option< Expression > EqualsExpression (Expression l, Expression r)
 Returns an option containing an expression that compares l and r for equality without casting, or None if no such comparison can be found. More...
 
static Smooth.Algebraics.Tuple
< Expression, MethodInfo > 
ExistingComparer (Type type)
 Returns a tuple containing: an Expression for the default comparer for the specified type, and a MethodInfo for the comparer's Compare(T, T) method. More...
 
static Smooth.Algebraics.Tuple
< Expression, MethodInfo > 
ExistingComparer< T > ()
 Returns a tuple containing: an Expression for the default sort order comparer for type T, and a MethodInfo for the comparer's Compare(T, T) method. More...
 
static Smooth.Algebraics.Tuple
< Expression, MethodInfo,
MethodInfo > 
ExistingEqualityComparer (Type type)
 Returns a tuple containing: an expression for the default equality comparer for the specified type, and a MethodInfo for the comparer's Equals(T, T) method, and a MethodInfo for the comparer's GetHashCode(T) method. More...
 
static Smooth.Algebraics.Tuple
< Expression, MethodInfo,
MethodInfo > 
ExistingEqualityComparer< T > ()
 Returns a tuple containing: an expression for the default equality comparer for type T, and a MethodInfo for the comparer's Equals(T, T) method, and a MethodInfo for the comparer's GetHashCode(T) method. More...
 

Member Function Documentation

static Option<IComparer<T> > Smooth.Compare.Factory.Comparer< T > ( )
inlinestatic

Returns an option containing a sort order comparer for type T, or None if no comparer can be created.

This method will create comparers for the following types:

System.Collections.KeyValuePair<,>.

static Option<IEqualityComparer<T> > Smooth.Compare.Factory.EqualityComparer< T > ( )
inlinestatic

Returns an option containing an equality comparer for type T, or None if no comparer can be created.

This method will create comparers for the following types:

Enumerations, System.Collections.KeyValuePair<,>s, Value types T with a public T.Equals(T) method or ==(T,T) operator.

static Option<Expression> Smooth.Compare.Factory.EqualsExpression ( Expression  l,
Expression  r 
)
inlinestatic

Returns an option containing an expression that compares l and r for equality without casting, or None if no such comparison can be found.

static Smooth.Algebraics.Tuple<Expression, MethodInfo> Smooth.Compare.Factory.ExistingComparer ( Type  type)
inlinestatic

Returns a tuple containing: an Expression for the default comparer for the specified type, and a MethodInfo for the comparer's Compare(T, T) method.

static Smooth.Algebraics.Tuple<Expression, MethodInfo> Smooth.Compare.Factory.ExistingComparer< T > ( )
inlinestatic

Returns a tuple containing: an Expression for the default sort order comparer for type T, and a MethodInfo for the comparer's Compare(T, T) method.

static Smooth.Algebraics.Tuple<Expression, MethodInfo, MethodInfo> Smooth.Compare.Factory.ExistingEqualityComparer ( Type  type)
inlinestatic

Returns a tuple containing: an expression for the default equality comparer for the specified type, and a MethodInfo for the comparer's Equals(T, T) method, and a MethodInfo for the comparer's GetHashCode(T) method.

static Smooth.Algebraics.Tuple<Expression, MethodInfo, MethodInfo> Smooth.Compare.Factory.ExistingEqualityComparer< T > ( )
inlinestatic

Returns a tuple containing: an expression for the default equality comparer for type T, and a MethodInfo for the comparer's Equals(T, T) method, and a MethodInfo for the comparer's GetHashCode(T) method.


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