示例#1
0
        public int CompareTo(FrameworkPath other)
        {
            int c = Version.CompareTo(other.Version);

            if (c != 0)
            {
                return(c);
            }
            c = Bitness - other.Bitness;
            if (c != 0)
            {
                return(c);
            }
            return(StringComparer.OrdinalIgnoreCase.Compare(Path, other.Path));
        }
示例#2
0
        public int CompareTo(FrameworkPaths other)
        {
            int c = Version.CompareTo(other.Version);

            if (c != 0)
            {
                return(c);
            }
            c = Bitness - other.Bitness;
            if (c != 0)
            {
                return(c);
            }

            return(StringComparer.OrdinalIgnoreCase.Compare(Path.GetDirectoryName(Paths[0]), Path.GetDirectoryName(other.Paths[0])));
        }
示例#3
0
        public int CompareTo(FrameworkPaths other)
        {
            int c = Version.CompareTo(other.Version);

            if (c != 0)
            {
                return(c);
            }
            c = Bitness - other.Bitness;
            if (c != 0)
            {
                return(c);
            }

            return(CompareTo(Paths, other.Paths));
        }
示例#4
0
        public int CompareTo([AllowNull] FrameworkPaths other)
        {
            if (other is null)
            {
                return(1);
            }
            int c = Version.CompareTo(other.Version);

            if (c != 0)
            {
                return(c);
            }
            c = Bitness - other.Bitness;
            if (c != 0)
            {
                return(c);
            }

            return(CompareTo(Paths, other.Paths));
        }