Ejemplo n.º 1
0
        /// <summary>
        /// Compares NuGetVersion objects using the given comparison mode.
        /// </summary>
        public int CompareTo(Version other, VersionComparison versionComparison)
        {
            var comparer = new VersionComparer(versionComparison);

            return(comparer.Compare(this, other));
        }
Ejemplo n.º 2
0
        private static int Compare(Version version1, Version version2)
        {
            var comparer = new VersionComparer();

            return(comparer.Compare(version1, version2));
        }
Ejemplo n.º 3
0
        /// <summary>
        /// Compares the given versions using the VersionComparison mode.
        /// </summary>
        public static int Compare(Version version1, Version version2, VersionComparison versionComparison)
        {
            var comparer = new VersionComparer(versionComparison);

            return(comparer.Compare(version1, version2));
        }