in resharper/resharper-unity/src/Unity/UnityEditorIntegration/VersionUtils/VersionEx.cs [13:24]
public static int CompareToLenient([NotNull] this Version self, [NotNull] Version other)
{
return ReferenceEquals(other, self) ? 0 :
self.Major != other.Major ? (self.Major > other.Major ? 1 : -1) :
self.Minor == -1 || other.Minor == -1 ? 0 :
self.Minor != other.Minor ? (self.Minor > other.Minor ? 1 : -1) :
self.Build == -1 || other.Build == -1 ? 0 :
self.Build != other.Build ? (self.Build > other.Build ? 1 : -1) :
self.Revision == -1 || other.Revision == -1 ? 0 :
self.Revision != other.Revision ? (self.Revision > other.Revision ? 1 : -1) :
0;
}