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
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
CharacteristicObjectcharacteristic
Characteristic
Returns
Resolve(CharacteristicObject, Characteristic, object)
public object Resolve(CharacteristicObject obj, Characteristic characteristic, object defaultValue)
Parameters
obj
CharacteristicObjectcharacteristic
CharacteristicdefaultValue
object
Returns
Resolve<T>(CharacteristicObject, Characteristic<T>)
public T Resolve<T>(CharacteristicObject obj, Characteristic<T> characteristic)
Parameters
obj
CharacteristicObjectcharacteristic
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
CharacteristicObjectcharacteristic
Characteristic<T>defaultValue
T
Returns
- T
Type Parameters
T