Game/Library/PackageCache/com.unity.package-manager-ui@2.0.13/Editor/Sources/External/SemVersionExtension.cs
2021-01-16 18:29:12 +01:00

15 lines
418 B
C#

namespace Semver
{
internal static class SemVersionExtension
{
public static string VersionOnly(this SemVersion version)
{
return "" + version.Major + "." + version.Minor + "." + version.Patch;
}
public static string ShortVersion(this SemVersion version)
{
return version.Major + "." + version.Minor;
}
}
}