Show / Hide Table of Contents

Class NuGetReference

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

Constructors

NuGetReference(String, String, Uri, Boolean)

Declaration
public NuGetReference(string packageName, string packageVersion, Uri source = null, bool prerelease = false)
Parameters
Type Name Description
String packageName
String packageVersion
Uri source
Boolean prerelease

Properties

PackageName

Declaration
public string PackageName { get; }
Property Value
Type Description
String

PackageSource

Declaration
public Uri PackageSource { get; }
Property Value
Type Description
Uri

PackageVersion

Declaration
public string PackageVersion { get; }
Property Value
Type Description
String

Prerelease

Declaration
public bool Prerelease { get; }
Property Value
Type Description
Boolean

Methods

Equals(NuGetReference)

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

Declaration
public bool Equals(NuGetReference other)
Parameters
Type Name Description
NuGetReference 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
Object.Equals(Object)

GetHashCode()

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

ToString()

Declaration
public override string ToString()
Returns
Type Description
String
Overrides
Object.ToString()

Implements

System.IEquatable<T>
In This Article
Back to top Copyright © 2013–2021 .NET Foundation and contributors