Table of Contents

Class Resolver

Namespace
BenchmarkDotNet.Characteristics
Assembly
BenchmarkDotNet.dll
public class Resolver : IResolver
Inheritance
Resolver
Implements
Derived

Constructors

Resolver()

public Resolver()

Methods

CanResolve(Characteristic)

public bool CanResolve(Characteristic characteristic)

Parameters

characteristic Characteristic

Returns

bool

Register<T>(Characteristic<T>, Func<CharacteristicObject, T>)

protected void Register<T>(Characteristic<T> characteristic, Func<CharacteristicObject, T> resolver)

Parameters

characteristic Characteristic<T>
resolver Func<CharacteristicObject, T>

Type Parameters

T

Register<T>(Characteristic<T>, Func<T>)

protected void Register<T>(Characteristic<T> characteristic, Func<T> resolver)

Parameters

characteristic Characteristic<T>
resolver Func<T>

Type Parameters

T

Resolve(CharacteristicObject, Characteristic)

public object Resolve(CharacteristicObject obj, Characteristic characteristic)

Parameters

obj CharacteristicObject
characteristic Characteristic

Returns

object

Resolve(CharacteristicObject, Characteristic, object)

public object Resolve(CharacteristicObject obj, Characteristic characteristic, object defaultValue)

Parameters

obj CharacteristicObject
characteristic Characteristic
defaultValue object

Returns

object

Resolve<T>(CharacteristicObject, Characteristic<T>)

public T Resolve<T>(CharacteristicObject obj, Characteristic<T> characteristic)

Parameters

obj CharacteristicObject
characteristic Characteristic<T>

Returns

T

Type Parameters

T

Resolve<T>(CharacteristicObject, Characteristic<T>, T)

public T Resolve<T>(CharacteristicObject obj, Characteristic<T> characteristic, T defaultValue)

Parameters

obj CharacteristicObject
characteristic Characteristic<T>
defaultValue T

Returns

T

Type Parameters

T