/// <summary> /// Initializes a new instance of the <see cref="UniversalPackageDependency"/> class. /// </summary> /// <param name="id">The full identifier of the package.</param> /// <param name="version">The required version; null indicates any version.</param> /// <exception cref="ArgumentNullException"><paramref name="id"/> is null.</exception> public UniversalPackageDependency(UniversalPackageId id, UniversalPackageVersion version) { this.FullName = id ?? throw new ArgumentNullException(nameof(id)); this.Version = version; }
/// <summary> /// Initializes a new instance of the <see cref="UniversalPackageDependency"/> class. /// </summary> /// <param name="id">The full identifier of the package.</param> /// <exception cref="ArgumentNullException"><paramref name="id"/> is null.</exception> public UniversalPackageDependency(UniversalPackageId id) : this(id, null) { }