Table of Contents

Class NuGetReference

Namespace
BenchmarkDotNet.Jobs
Assembly
BenchmarkDotNet.dll
public class NuGetReference : IEquatable<NuGetReference>
Inheritance
NuGetReference
Implements

Constructors

NuGetReference(string, string, Uri?, bool)

public NuGetReference(string packageName, string packageVersion, Uri? source = null, bool prerelease = false)

Parameters

packageName string
packageVersion string
source Uri
prerelease bool

Properties

PackageName

public string PackageName { get; }

Property Value

string

PackageSource

public Uri PackageSource { get; }

Property Value

Uri

PackageVersion

public string PackageVersion { get; }

Property Value

string

Prerelease

public bool Prerelease { get; }

Property Value

bool

Methods

Equals(NuGetReference)

Object is equals when the package name and version are the same

public bool Equals(NuGetReference other)

Parameters

other NuGetReference

Returns

bool

Equals(object)

public override bool Equals(object obj)

Parameters

obj object

Returns

bool

GetHashCode()

public override int GetHashCode()

Returns

int

ToString()

public override string ToString()

Returns

string