Table of Contents

Class Descriptor

Namespace
BenchmarkDotNet.Running
Assembly
BenchmarkDotNet.dll
public class Descriptor : IEquatable<Descriptor>
Inheritance
Descriptor
Implements

Constructors

Descriptor(Type, MethodInfo, MethodInfo?, MethodInfo?, MethodInfo?, MethodInfo?, string?, string?, bool, string[]?, int, int)

public Descriptor(Type type, MethodInfo workloadMethod, MethodInfo? globalSetupMethod = null, MethodInfo? globalCleanupMethod = null, MethodInfo? iterationSetupMethod = null, MethodInfo? iterationCleanupMethod = null, string? description = null, string? additionalLogic = null, bool baseline = false, string[]? categories = null, int operationsPerInvoke = 1, int methodIndex = 0)

Parameters

type Type
workloadMethod MethodInfo
globalSetupMethod MethodInfo
globalCleanupMethod MethodInfo
iterationSetupMethod MethodInfo
iterationCleanupMethod MethodInfo
description string
additionalLogic string
baseline bool
categories string[]
operationsPerInvoke int
methodIndex int

Properties

AdditionalLogic

public string AdditionalLogic { get; }

Property Value

string

Baseline

public bool Baseline { get; }

Property Value

bool

Categories

public string[] Categories { get; }

Property Value

string[]

DisplayInfo

public string DisplayInfo { get; }

Property Value

string

FolderInfo

public string FolderInfo { get; }

Property Value

string

GlobalCleanupMethod

public MethodInfo? GlobalCleanupMethod { get; }

Property Value

MethodInfo

GlobalSetupMethod

public MethodInfo? GlobalSetupMethod { get; }

Property Value

MethodInfo

IterationCleanupMethod

public MethodInfo? IterationCleanupMethod { get; }

Property Value

MethodInfo

IterationSetupMethod

public MethodInfo? IterationSetupMethod { get; }

Property Value

MethodInfo

MethodIndex

public int MethodIndex { get; }

Property Value

int

OperationsPerInvoke

public int OperationsPerInvoke { get; }

Property Value

int

Type

public Type Type { get; }

Property Value

Type

WorkloadMethod

public MethodInfo WorkloadMethod { get; }

Property Value

MethodInfo

WorkloadMethodDisplayInfo

public string WorkloadMethodDisplayInfo { get; }

Property Value

string

Methods

Equals(Descriptor?)

public bool Equals(Descriptor? other)

Parameters

other Descriptor

Returns

bool

Equals(object?)

public override bool Equals(object? obj)

Parameters

obj object

Returns

bool

GetFilterName()

public string GetFilterName()

Returns

string

GetHashCode()

public override int GetHashCode()

Returns

int

HasCategory(string)

public bool HasCategory(string category)

Parameters

category string

Returns

bool

ToString()

public override string ToString()

Returns

string