public static IsInstalled ( this package, IPackageRepository repo ) : bool | ||
package | this | |
repo | IPackageRepository | |
Résultat | bool |
public static bool IsInstalled(this IPackageMetadata package, IPackageRepository repo)
{
if (package != null && package.Id != null)
return repo.FindPackage(package.Id) != null;
return false;
}