Show / Hide Table of Contents

Struct BenchmarkId

represents an internal entity used to identify a benchmark within an executable with multiple benchmarks

Namespace: BenchmarkDotNet.Running
Assembly: BenchmarkDotNet.dll
Syntax
public struct BenchmarkId

Constructors

BenchmarkId(Int32, BenchmarkCase)

Declaration
public BenchmarkId(int value, BenchmarkCase benchmarkCase)
Parameters
Type Name Description
Int32 value
BenchmarkCase benchmarkCase

Properties

Value

Declaration
public readonly int Value { get; }
Property Value
Type Description
Int32

Methods

Equals(BenchmarkId)

Declaration
public bool Equals(BenchmarkId other)
Parameters
Type Name Description
BenchmarkId other
Returns
Type Description
Boolean

Equals(Object)

Declaration
public override bool Equals(object obj)
Parameters
Type Name Description
Object obj
Returns
Type Description
Boolean
Overrides
ValueType.Equals(Object)

GetHashCode()

Declaration
public override int GetHashCode()
Returns
Type Description
Int32
Overrides
ValueType.GetHashCode()

ToArguments()

Declaration
public string ToArguments()
Returns
Type Description
String

ToString()

Declaration
public override string ToString()
Returns
Type Description
String
Overrides
ValueType.ToString()
In This Article
Back to top Copyright © 2013–2021 .NET Foundation and contributors