Ejemplo n.º 1
0
        public bool Equals(FrameworkEnumeratorData <TFramework> other)
        {
            if (other == null)
            {
                return(false);
            }

            return(StringComparer.OrdinalIgnoreCase.Equals(Identifier, other.Identifier) &&
                   Version == other.Version &&
                   StringComparer.OrdinalIgnoreCase.Equals(Profile, other.Profile));
        }
Ejemplo n.º 2
0
        public int CompareTo(FrameworkEnumeratorData <TFramework> other)
        {
            var frameworkCompare = StringComparer.OrdinalIgnoreCase.Compare(Identifier, other.Identifier);

            if (frameworkCompare != 0)
            {
                return(frameworkCompare);
            }

            var versionCompare = Version.CompareTo(other.Version);

            if (versionCompare != 0)
            {
                return(frameworkCompare);
            }

            return(Profile.CompareTo(other.Profile));
        }