Skip to content

Commit a7e1403

Browse files
committed
Added the AvailablrVersionObject property to the WinGetPackage class; Updated the XML Documentation
1 parent ba2b6b9 commit a7e1403

2 files changed

Lines changed: 20 additions & 30 deletions

File tree

src/WGet.NET/Models/WinGetPackage.cs

Lines changed: 14 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -80,7 +80,7 @@ public string Version
8080
}
8181

8282
/// <summary>
83-
/// Gets or sets the version of the package.
83+
/// Gets the version of the package.
8484
/// </summary>
8585
public Version VersionObject
8686
{
@@ -108,10 +108,22 @@ public string AvailableVersion
108108
else
109109
{
110110
_availableVersion = value;
111+
_availableVersionObject = VersionParser.Parse(_availableVersion);
111112
}
112113
}
113114
}
114115

116+
/// <summary>
117+
/// Gets the newest available version of the package.
118+
/// </summary>
119+
public Version AvailableVersionObject
120+
{
121+
get
122+
{
123+
return _availableVersionObject;
124+
}
125+
}
126+
115127
/// <summary>
116128
/// Gets or sets the source name for the package.
117129
/// </summary>
@@ -165,6 +177,7 @@ public bool HasShortenedId
165177
private string _version = string.Empty;
166178
private Version _versionObject = new(0, 0);
167179
private string _availableVersion = string.Empty;
180+
private Version _availableVersionObject = new(0, 0);
168181
private string _sourceName = string.Empty;
169182

170183
private readonly bool _hasShortenedId = false;

src/WGet.NET/XmlDocumentation/WGet.NET.xml

Lines changed: 6 additions & 29 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)