Class CharacteristicObject
- Namespace
- BenchmarkDotNet.Characteristics
- Assembly
- BenchmarkDotNet.dll
public abstract class CharacteristicObject
- Inheritance
-
CharacteristicObject
- Derived
-
- Extension Methods
-
Constructors
CharacteristicObject()
protected CharacteristicObject()
CharacteristicObject(string?)
protected CharacteristicObject(string? id)
Parameters
id
string
Fields
IdCharacteristic
public static readonly Characteristic<string> IdCharacteristic
Field Value
- Characteristic<string>
Properties
Frozen
public bool Frozen { get; }
Property Value
- bool
HasChanges
public bool HasChanges { get; }
Property Value
- bool
Id
public string Id { get; }
Property Value
- string
IsPropertyBag
protected virtual bool IsPropertyBag { get; }
Property Value
- bool
OwnerOrSelf
protected CharacteristicObject OwnerOrSelf { get; }
Property Value
- CharacteristicObject
Methods
Apply(CharacteristicObject)
public void Apply(CharacteristicObject other)
Parameters
other
CharacteristicObject
ApplyCore(CharacteristicObject)
protected CharacteristicObject ApplyCore(CharacteristicObject other)
Parameters
other
CharacteristicObject
Returns
- CharacteristicObject
Freeze()
FreezeCore()
protected CharacteristicObject FreezeCore()
Returns
- CharacteristicObject
GetCharacteristicsWithValues()
public IEnumerable<Characteristic> GetCharacteristicsWithValues()
Returns
- IEnumerable<Characteristic>
HasValue(Characteristic)
public bool HasValue(Characteristic characteristic)
Parameters
characteristic
Characteristic
Returns
- bool
ResolveId(CharacteristicObject, string)
protected static string ResolveId(CharacteristicObject obj, string actual)
Parameters
obj
CharacteristicObject
actual
string
Returns
- string
ResolveValue(Characteristic, IResolver)
public object ResolveValue(Characteristic characteristic, IResolver resolver)
Parameters
characteristic
Characteristic
resolver
IResolver
Returns
- object
ResolveValue(Characteristic, IResolver, object)
public object ResolveValue(Characteristic characteristic, IResolver resolver, object defaultValue)
Parameters
characteristic
Characteristic
resolver
IResolver
defaultValue
object
Returns
- object
ResolveValue(Characteristic, object)
public object ResolveValue(Characteristic characteristic, object defaultValue)
Parameters
characteristic
Characteristic
defaultValue
object
Returns
- object
ResolveValueAsNullable<T>(Characteristic<T>)
public T? ResolveValueAsNullable<T>(Characteristic<T> characteristic) where T : struct
Parameters
characteristic
Characteristic<T>
Returns
- T?
Type Parameters
T
ResolveValue<T>(Characteristic<T>, IResolver)
public T ResolveValue<T>(Characteristic<T> characteristic, IResolver resolver)
Parameters
characteristic
Characteristic<T>
resolver
IResolver
Returns
- T
Type Parameters
T
ResolveValue<T>(Characteristic<T>, IResolver, T)
public T ResolveValue<T>(Characteristic<T> characteristic, IResolver resolver, T defaultValue)
Parameters
characteristic
Characteristic<T>
resolver
IResolver
defaultValue
T
Returns
- T
Type Parameters
T
ResolveValue<T>(Characteristic<T>, T)
public T ResolveValue<T>(Characteristic<T> characteristic, T defaultValue)
Parameters
characteristic
Characteristic<T>
defaultValue
T
Returns
- T
Type Parameters
T
ToString()
public override string ToString()
Returns
- string
UnfreezeCopy()
public CharacteristicObject UnfreezeCopy()
Returns
- CharacteristicObject
UnfreezeCopyCore()
protected CharacteristicObject UnfreezeCopyCore()
Returns
- CharacteristicObject