Files
netch/Netch/Models/GitHubRelease/VersionComparer.cs
2021-02-28 22:17:12 +08:00

12 lines
285 B
C#

using System.Collections.Generic;
namespace Netch.Models.GitHubRelease
{
public class VersionComparer : IComparer<object>
{
public int Compare(object x, object y)
{
return VersionUtil.CompareVersion(x.ToString(), y.ToString());
}
}
}