C# Class NuGet.PackageExtensions

Afficher le fichier Open project: grendello/nuget

Méthodes publiques

Méthode Description
Find ( this packages ) : IQueryable
GetContentFiles ( this package ) : IEnumerable
GetFiles ( this package, string directory ) : IEnumerable
GetFullName ( this package ) : string
GetHash ( this package ) : string
GetHash ( this package, IHashProvider hashProvider ) : string
HasProjectContent ( this package ) : bool

Returns true if a package has no content that applies to a project.

IsDependencyOnly ( this package ) : bool

Returns true if a package has dependencies but no files.

Private Methods

Méthode Description
BuildExpressionForTerm ( System.Linq.Expressions.ParameterExpression packageParameterExpression, string term, string propertyName ) : Expression
BuildSearchExpression ( IEnumerable searchTerms ) : bool>>.Expression

Constructs an expression to search for individual tokens in a search term in the Id and Description of packages

Method Details

Find() public static méthode

public static Find ( this packages ) : IQueryable
packages this
Résultat IQueryable

GetContentFiles() public static méthode

public static GetContentFiles ( this package ) : IEnumerable
package this
Résultat IEnumerable

GetFiles() public static méthode

public static GetFiles ( this package, string directory ) : IEnumerable
package this
directory string
Résultat IEnumerable

GetFullName() public static méthode

public static GetFullName ( this package ) : string
package this
Résultat string

GetHash() public static méthode

public static GetHash ( this package ) : string
package this
Résultat string

GetHash() public static méthode

public static GetHash ( this package, IHashProvider hashProvider ) : string
package this
hashProvider IHashProvider
Résultat string

HasProjectContent() public static méthode

Returns true if a package has no content that applies to a project.
public static HasProjectContent ( this package ) : bool
package this
Résultat bool

IsDependencyOnly() public static méthode

Returns true if a package has dependencies but no files.
public static IsDependencyOnly ( this package ) : bool
package this
Résultat bool