Table of Contents

Class Ext

Namespace
SearchAThing.Util
Assembly
netcore-util.dll
public static class Ext
Inheritance
Ext
Inherited Members

Methods

CompareTol(IQuantity, IQuantity, IQuantity)

public static int CompareTol(this IQuantity x, IQuantity tol, IQuantity y)

Parameters

x IQuantity
tol IQuantity
y IQuantity

Returns

int

Details(Exception, bool)

public static string Details(this Exception ex, bool includeStackTrace = true)

Parameters

ex Exception
includeStackTrace bool

Returns

string

DetailsObject(Exception)

public static ErrorInfo DetailsObject(this Exception _ex)

Parameters

_ex Exception

Returns

ErrorInfo

EqualsTol(IQuantity, IQuantity, IQuantity)

true if ( |x-y| LTE tol )

public static bool EqualsTol(this IQuantity x, IQuantity tol, IQuantity y)

Parameters

x IQuantity
tol IQuantity
y IQuantity

Returns

bool

GreatThanOrEqualsTol(IQuantity, IQuantity, IQuantity)

true if (x GT y) AND ( |x-y| LTE tol )

public static bool GreatThanOrEqualsTol(this IQuantity x, IQuantity tol, IQuantity y)

Parameters

x IQuantity
tol IQuantity
y IQuantity

Returns

bool

GreatThanTol(IQuantity, IQuantity, IQuantity)

true if (x GT y) AND NOT ( |x-y| LTE tol )

public static bool GreatThanTol(this IQuantity x, IQuantity tol, IQuantity y)

Parameters

x IQuantity
tol IQuantity
y IQuantity

Returns

bool

LessThanOrEqualsTol(IQuantity, IQuantity, IQuantity)

true if (x LT y) AND ( |x-y| LTE tol )

public static bool LessThanOrEqualsTol(this IQuantity x, IQuantity tol, IQuantity y)

Parameters

x IQuantity
tol IQuantity
y IQuantity

Returns

bool

LessThanTol(IQuantity, IQuantity, IQuantity)

true if (x LT y) AND NOT ( |x-y| LTE tol )

public static bool LessThanTol(this IQuantity x, IQuantity tol, IQuantity y)

Parameters

x IQuantity
tol IQuantity
y IQuantity

Returns

bool