Skip to content

Commit 2a46bb3

Browse files
committed
Documentation improvements
1 parent ec42043 commit 2a46bb3

2 files changed

Lines changed: 210 additions & 17 deletions

File tree

‎src/WGet.NET/Components/WinGetPackageManager.cs‎

Lines changed: 19 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -1489,7 +1489,7 @@ private string HashResultToHash(ProcessResult result)
14891489
/// Downloads the installer of a package using winget.
14901490
/// </summary>
14911491
/// <param name="packageId">The id or name of the package to download.</param>
1492-
/// <param name="directory">Directory path the files will be downloaded to.</param>
1492+
/// <param name="directory">Directory path the files will be downloaded to. It will be created if it does not exist.</param>
14931493
/// <returns>
14941494
/// <see langword="true"/> if the download was successful or <see langword="false"/> if it failed.
14951495
/// </returns>
@@ -1533,7 +1533,10 @@ public bool Download(string packageId, string directory)
15331533
/// Downloads the installer of a package using winget.
15341534
/// </summary>
15351535
/// <param name="packageId">The id or name of the package to download.</param>
1536-
/// <param name="directory">A <see cref="System.IO.DirectoryInfo"/> object of the directory the files will be downloaded to.</param>
1536+
/// <param name="directory">
1537+
/// A <see cref="System.IO.DirectoryInfo"/> object of the directory the files will be downloaded to.
1538+
/// It will be created if it does not exist.
1539+
/// </param>
15371540
/// <returns>
15381541
/// <see langword="true"/> if the download was successful or <see langword="false"/> if it failed.
15391542
/// </returns>
@@ -1556,7 +1559,7 @@ public bool Download(string packageId, DirectoryInfo directory)
15561559
/// Downloads the installer of a package using winget.
15571560
/// </summary>
15581561
/// <param name="package">The package to download.</param>
1559-
/// <param name="directory">Directory path the files will be downloaded to.</param>
1562+
/// <param name="directory">Directory path the files will be downloaded to. It will be created if it does not exist.</param>
15601563
/// <returns>
15611564
/// <see langword="true"/> if the download was successful or <see langword="false"/> if it failed.
15621565
/// </returns>
@@ -1584,7 +1587,10 @@ public bool Download(WinGetPackage package, string directory)
15841587
/// Downloads the installer of a package using winget.
15851588
/// </summary>
15861589
/// <param name="package">The package to download.</param>
1587-
/// <param name="directory">A <see cref="System.IO.DirectoryInfo"/> object of the directory the files will be downloaded to.</param>
1590+
/// <param name="directory">
1591+
/// A <see cref="System.IO.DirectoryInfo"/> object of the directory the files will be downloaded to.
1592+
/// It will be created if it does not exist.
1593+
/// </param>
15881594
/// <returns>
15891595
/// <see langword="true"/> if the download was successful or <see langword="false"/> if it failed.
15901596
/// </returns>
@@ -1612,7 +1618,7 @@ public bool Download(WinGetPackage package, DirectoryInfo directory)
16121618
/// Asynchronously downloads the installer of a package using winget.
16131619
/// </summary>
16141620
/// <param name="packageId">The id or name of the package to download.</param>
1615-
/// <param name="directory">Directory path the files will be downloaded to.</param>
1621+
/// <param name="directory">Directory path the files will be downloaded to. It will be created if it does not exist.</param>
16161622
/// <returns>
16171623
/// <see langword="true"/> if the download was successful or <see langword="false"/> if it failed.
16181624
/// </returns>
@@ -1656,7 +1662,10 @@ public async Task<bool> DownloadAsync(string packageId, string directory)
16561662
/// Asynchronously downloads the installer of a package using winget.
16571663
/// </summary>
16581664
/// <param name="packageId">The id or name of the package to download.</param>
1659-
/// <param name="directory">A <see cref="System.IO.DirectoryInfo"/> object of the directory the files will be downloaded to.</param>
1665+
/// <param name="directory">
1666+
/// A <see cref="System.IO.DirectoryInfo"/> object of the directory the files will be downloaded to.
1667+
/// It will be created if it does not exist.
1668+
/// </param>
16601669
/// <returns>
16611670
/// <see langword="true"/> if the download was successful or <see langword="false"/> if it failed.
16621671
/// </returns>
@@ -1679,7 +1688,7 @@ public async Task<bool> DownloadAsync(string packageId, DirectoryInfo directory)
16791688
/// Asynchronously downloads the installer of a package using winget.
16801689
/// </summary>
16811690
/// <param name="package">The package to download.</param>
1682-
/// <param name="directory">Directory path the files will be downloaded to.</param>
1691+
/// <param name="directory">Directory path the files will be downloaded to. It will be created if it does not exist.</param>
16831692
/// <returns>
16841693
/// <see langword="true"/> if the download was successful or <see langword="false"/> if it failed.
16851694
/// </returns>
@@ -1707,7 +1716,9 @@ public async Task<bool> DownloadAsync(WinGetPackage package, string directory)
17071716
/// Asynchronously downloads the installer of a package using winget.
17081717
/// </summary>
17091718
/// <param name="package">The package to download.</param>
1710-
/// <param name="directory">A <see cref="System.IO.DirectoryInfo"/> object of the directory the files will be downloaded to.</param>
1719+
/// <param name="directory">
1720+
/// A <see cref="System.IO.DirectoryInfo"/> object of the directory the files will be downloaded to.
1721+
/// It will be created if it does not exist.</param>
17111722
/// <returns>
17121723
/// <see langword="true"/> if the download was successful or <see langword="false"/> if it failed.
17131724
/// </returns>

0 commit comments

Comments
 (0)