Table of Contents

Class PackageType

Namespace
NuGet.Packaging.Core
Assembly
Chocolatey.NuGet.Packaging.dll
public class PackageType : IEquatable<PackageType>, IComparable<PackageType>
Inheritance
PackageType
Implements
Inherited Members

Constructors

PackageType(string, Version)

public PackageType(string name, Version version)

Parameters

name string
version Version

Fields

Dependency

public static readonly PackageType Dependency

Field Value

PackageType

DotnetCliTool

public static readonly PackageType DotnetCliTool

Field Value

PackageType

DotnetPlatform

public static readonly PackageType DotnetPlatform

Field Value

PackageType

DotnetTool

public static readonly PackageType DotnetTool

Field Value

PackageType

EmptyVersion

public static readonly Version EmptyVersion

Field Value

Version

Legacy

public static readonly PackageType Legacy

Field Value

PackageType

PackageTypeNameComparer

public static readonly StringComparer PackageTypeNameComparer

Field Value

StringComparer

SymbolsPackage

public static readonly PackageType SymbolsPackage

Field Value

PackageType

Properties

Name

public string Name { get; }

Property Value

string

Version

public Version Version { get; }

Property Value

Version

Methods

CompareTo(PackageType)

public int CompareTo(PackageType other)

Parameters

other PackageType

Returns

int

Equals(PackageType)

public bool Equals(PackageType other)

Parameters

other PackageType

Returns

bool

Equals(object)

public override bool Equals(object obj)

Parameters

obj object

Returns

bool

GetHashCode()

public override int GetHashCode()

Returns

int

Operators

operator ==(PackageType, PackageType)

public static bool operator ==(PackageType a, PackageType b)

Parameters

a PackageType
b PackageType

Returns

bool

operator !=(PackageType, PackageType)

public static bool operator !=(PackageType a, PackageType b)

Parameters

a PackageType
b PackageType

Returns

bool