Example #1
0
        public static int Compare <T>(IEnumerable <T> source, int sourceIndex, IEnumerable <T> destination, int destinationIndex, int length)
        {
            var compare = Comparer <T> .Default;

            return(CollectionUtilities.Compare(source, sourceIndex, destination, destinationIndex, length, compare));
        }
Example #2
0
        public static bool Equals <T>(IEnumerable <T> source, int sourceIndex, IEnumerable <T> destination, int destinationIndex, int length)
        {
            var equalityComparer = EqualityComparer <T> .Default;

            return(CollectionUtilities.Equals(source, sourceIndex, destination, destinationIndex, length, equalityComparer));
        }
Example #3
0
        public static int Compare <T>(IEnumerable <T> source, IEnumerable <T> destination)
        {
            var compare = Comparer <T> .Default;

            return(CollectionUtilities.Compare(source, destination, compare));
        }
Example #4
0
        public static bool Equals <T>(IEnumerable <T> source, IEnumerable <T> destination)
        {
            var equalityComparer = EqualityComparer <T> .Default;

            return(CollectionUtilities.Equals(source, destination, equalityComparer));
        }