C# Class NuGet.PackageExtensions

显示文件 Open project: grendello/nuget

Public Methods

Method 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

Method 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 method

public static Find ( this packages ) : IQueryable
packages this
return IQueryable

GetContentFiles() public static method

public static GetContentFiles ( this package ) : IEnumerable
package this
return IEnumerable

GetFiles() public static method

public static GetFiles ( this package, string directory ) : IEnumerable
package this
directory string
return IEnumerable

GetFullName() public static method

public static GetFullName ( this package ) : string
package this
return string

GetHash() public static method

public static GetHash ( this package ) : string
package this
return string

GetHash() public static method

public static GetHash ( this package, IHashProvider hashProvider ) : string
package this
hashProvider IHashProvider
return string

HasProjectContent() public static method

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

IsDependencyOnly() public static method

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