Struct BenchmarkMethodMetadata
Metadata used to indicate how a single method works
Inherited Members
      System.ValueType.Equals(System.Object)
    
    
      System.ValueType.GetHashCode()
    
    
      System.ValueType.ToString()
    
    
      System.Object.Equals(System.Object, System.Object)
    
    
      System.Object.GetType()
    
    
      System.Object.ReferenceEquals(System.Object, System.Object)
    
  Namespace: NBench.Sdk.Compiler
Assembly: NBench.dll
Syntax
public struct BenchmarkMethodMetadataConstructors
BenchmarkMethodMetadata(MethodInfo, Boolean, Boolean)
Declaration
public BenchmarkMethodMetadata(MethodInfo invocationMethod, bool takesBenchmarkContext, bool skip)Parameters
| Type | Name | Description | 
|---|---|---|
| System.Reflection.MethodInfo | invocationMethod | |
| System.Boolean | takesBenchmarkContext | |
| System.Boolean | skip | 
Fields
Empty
Empty method that won't be called during a benchmark run
Declaration
public static readonly BenchmarkMethodMetadata EmptyField Value
| Type | Description | 
|---|---|
| BenchmarkMethodMetadata | 
Properties
InvocationMethod
The method we'll invoke for cleanup / teardown
Declaration
public MethodInfo InvocationMethod { get; }Property Value
| Type | Description | 
|---|---|
| System.Reflection.MethodInfo | 
Skip
Skip this method
Declaration
public bool Skip { get; }Property Value
| Type | Description | 
|---|---|
| System.Boolean | 
TakesBenchmarkContext
Does this method take BenchmarkContext?
Declaration
public bool TakesBenchmarkContext { get; }Property Value
| Type | Description | 
|---|---|
| System.Boolean |