Class Characteristic
Inheritance
Characteristic
Assembly: BenchmarkDotNet.dll
Syntax
public abstract class Characteristic
Constructors
Characteristic(String, Type, Type, Object, Boolean, Boolean)
Declaration
protected Characteristic(string id, Type characteristicType, Type declaringType, object fallbackValue, bool ignoreOnApply, bool dontShowInSummary = false)
Parameters
Fields
EmptyValue
Declaration
public static readonly object EmptyValue
Field Value
Properties
CharacteristicType
Declaration
public Type CharacteristicType { get; }
Property Value
DeclaringType
Declaration
public Type DeclaringType { get; }
Property Value
DontShowInSummary
Declaration
public bool DontShowInSummary { get; }
Property Value
FullId
Declaration
public string FullId { get; }
Property Value
HasChildCharacteristics
Declaration
public bool HasChildCharacteristics { get; }
Property Value
Id
Declaration
public string Id { get; }
Property Value
IgnoreOnApply
Declaration
public bool IgnoreOnApply { get; }
Property Value
Item[CharacteristicObject]
Declaration
public object this[CharacteristicObject obj] { get; set; }
Parameters
Property Value
Methods
Create<TOwner, T>(String)
Declaration
public static Characteristic<T> Create<TOwner, T>(string memberName)
where TOwner : CharacteristicObject
Parameters
Type |
Name |
Description |
String |
memberName |
|
Returns
Type Parameters
Name |
Description |
TOwner |
|
T |
|
Create<TOwner, T>(String, T)
Declaration
public static Characteristic<T> Create<TOwner, T>(string memberName, T fallbackValue)
where TOwner : CharacteristicObject
Parameters
Type |
Name |
Description |
String |
memberName |
|
T |
fallbackValue |
|
Returns
Type Parameters
Name |
Description |
TOwner |
|
T |
|
Create<TOwner, T>(String, Func<CharacteristicObject, T, T>, T, Boolean)
Declaration
public static Characteristic<T> Create<TOwner, T>(string memberName, Func<CharacteristicObject, T, T> resolver, T fallbackValue, bool ignoreOnApply)
where TOwner : CharacteristicObject
Parameters
Returns
Type Parameters
Name |
Description |
TOwner |
|
T |
|
CreateHidden<TOwner, T>(String)
Declaration
public static Characteristic<T> CreateHidden<TOwner, T>(string memberName)
where TOwner : CharacteristicObject
Parameters
Type |
Name |
Description |
String |
memberName |
|
Returns
Type Parameters
Name |
Description |
TOwner |
|
T |
|
CreateIgnoreOnApply<TOwner, T>(String)
Declaration
public static Characteristic<T> CreateIgnoreOnApply<TOwner, T>(string memberName)
where TOwner : CharacteristicObject
Parameters
Type |
Name |
Description |
String |
memberName |
|
Returns
Type Parameters
Name |
Description |
TOwner |
|
T |
|
ToString()
Declaration
public override string ToString()
Returns
Overrides
Extension Methods