GIFToWoWTexture/GIFConverter/TGASharpLib.cs
/// <summary>
/// Compare N-dimensional Arrays.
/// </summary>
/// <typeparam name="T">Arrays Type.</typeparam>
/// <param name="item1">First Array.</param>
/// <param name="item2">Second Array.</param>
/// <returns>True, if Arrays are equal.</returns>
Compare N-dimensional Arrays.
Compare N - dimensional Arrays .
public static bool IsArraysEqual<T>(T[] item1, T[] item2)
        {
            if (ReferenceEquals(item1, item2))
                return true;
            if (item1 == null || item2 == null)
                return false;
            if (item1.Length != item2.Length)
                return false;
            EqualityComparer<T> comparer = EqualityComparer<T>.Default;
            for (int i = 0; i < item1.Length; i++)
                if (!comparer.Equals(item1[i], item2[i]))
                    return false;
            return true;
        }
public static bool IsArraysEqual < T > ( T [ ] item1 , T [ ] item2 ) { if ( ReferenceEquals ( item1 , item2 ) ) return true ; if ( item1 == null || item2 == null ) return false ; if ( item1 . Length != item2 . Length ) return false ; EqualityComparer < T > comparer = EqualityComparer < T > . Default ; for ( int i = 0 ; i < item1 . Length ; i ++ ) if ( ! comparer . Equals ( item1 [ i ] , item2 [ i ] ) ) return false ; return true ; }
Compare N-dimensional Arrays.
Compare N - dimensional Arrays .
True, if Arrays are equal.
True if Arrays are equal .
item1
T[]
None
item2
T[]
None
typeparam
None