diff options
Diffstat (limited to 'src/StardewModdingAPI/Version.cs')
-rw-r--r-- | src/StardewModdingAPI/Version.cs | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/src/StardewModdingAPI/Version.cs b/src/StardewModdingAPI/Version.cs index 9c13381a..87cd4f3d 100644 --- a/src/StardewModdingAPI/Version.cs +++ b/src/StardewModdingAPI/Version.cs @@ -85,6 +85,11 @@ namespace StardewModdingAPI return this.GetSemanticVersion().IsNewerThan(other); } + /// <summary>Get a string representation of the version.</summary> + public override string ToString() + { + return this.GetSemanticVersion().ToString(); + } /********* ** Private methods |