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