Exemple #1
0
        public int Compare(object?x, object?y)
        {
            if (x == null)
            {
                throw new ArgumentNullException(nameof(x));
            }

            if (y == null)
            {
                throw new ArgumentNullException(nameof(y));
            }

            return(VersionUtil.CompareVersion(x.ToString(), y.ToString()));
        }
Exemple #2
0
 public int Compare(object x, object y)
 {
     return(VersionUtil.CompareVersion(x?.ToString(), y?.ToString()));
 }