Esempio n. 1
0
        public bool Equals(OneWayCompatibilityMappingEntry x, OneWayCompatibilityMappingEntry y)
        {
            if (Object.ReferenceEquals(x, y))
            {
                return(true);
            }

            if (Object.ReferenceEquals(x, null) || Object.ReferenceEquals(y, null))
            {
                return(false);
            }

            var comparer = new FrameworkRangeComparer();

            return(comparer.Equals(x.TargetFrameworkRange, y.TargetFrameworkRange) &&
                   comparer.Equals(x.SupportedFrameworkRange, y.SupportedFrameworkRange));
        }
Esempio n. 2
0
        public bool Equals(FrameworkRange other)
        {
            var comparer = new FrameworkRangeComparer();

            return(comparer.Equals(this, other));
        }