Show / Hide Table of Contents

Class Comparison

Provides extensions for delegate .

Inheritance
Object
Comparison
Namespace: DotNext
Assembly: DotNext.dll
Syntax
public static class Comparison : object

Methods

| Improve this Doc View Source

AsValueFunc<T>(Comparison<T>, Boolean)

Converts comparison method into ValueFunc<T1, T2, R>.

Declaration
public static ValueFunc<T, T, int> AsValueFunc<T>(this Comparison<T> comparison, bool wrap = false)
Parameters
Type Name Description
DotNext.Comparison<T> comparison

The delegate representing comparison method.

Boolean wrap

true to wrap comparison into this delegate; false to extract method pointer without holding reference to the passed delegate.

Returns
Type Description
ValueFunc<T, T, Int32>

The value delegate represeting comparison method.

Type Parameters
Name Description
T

The type of the object to compare.

  • Improve this Doc
  • View Source
Back to top Generated by DocFX