/// <summary> /// Updates the <see cref="Weight"/> for progress reporting. /// </summary> public virtual void UpdateWeight() { if (!string.IsNullOrEmpty(this.Path)) { this.Weight = PackageInfo.GetWeightFromPath(this.Path); } else if (!string.IsNullOrEmpty(this.ProductCode)) { this.Weight = PackageInfo.GetWeightFromProductCode(this.ProductCode); } }