summaryrefslogtreecommitdiff
path: root/src/StardewModdingAPI/Version.cs
diff options
context:
space:
mode:
authorJesse Plamondon-Willard <github@jplamondonw.com>2016-12-18 16:58:47 -0500
committerJesse Plamondon-Willard <github@jplamondonw.com>2016-12-18 16:58:47 -0500
commita8cc3636995c9fc5eb08fa9d42129a05d79bb666 (patch)
tree77cab46ff9f0ef0e5c9e4672c48826d28f9a369a /src/StardewModdingAPI/Version.cs
parent23988a3c33a7a1616c2d36a2c4b7e3a2d06f4216 (diff)
downloadSMAPI-a8cc3636995c9fc5eb08fa9d42129a05d79bb666.tar.gz
SMAPI-a8cc3636995c9fc5eb08fa9d42129a05d79bb666.tar.bz2
SMAPI-a8cc3636995c9fc5eb08fa9d42129a05d79bb666.zip
fix legacy version wrapper not implementing ToString method (#197)
Diffstat (limited to 'src/StardewModdingAPI/Version.cs')
-rw-r--r--src/StardewModdingAPI/Version.cs5
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