Compare two byte arrays to determine whether they contain the same data.
Namespace:  Microsoft.TeamFoundation.Common
Assembly:  Microsoft.TeamFoundation.Common (in Microsoft.TeamFoundation.Common.dll)
Syntax
'Declaration
Public Shared Function Equals ( _
    a1 As Byte(), _
    a2 As Byte(), _
    length As Integer _
) As Boolean
public static bool Equals(
    byte[] a1,
    byte[] a2,
    int length
)
public:
static bool Equals(
    array<unsigned char>^ a1, 
    array<unsigned char>^ a2, 
    int length
)
static member Equals : 
        a1:byte[] * 
        a2:byte[] * 
        length:int -> bool
public static function Equals(
    a1 : byte[], 
    a2 : byte[], 
    length : int
) : boolean
Parameters
- a1 
 Type: array<System.Byte[]- First array to compare. 
- a2 
 Type: array<System.Byte[]- Second array to compare. 
- length 
 Type: System.Int32- # of bytes to compare. 
Return Value
Type: System.Boolean
true if the arrays are equal and false if not.
.NET Framework Security
- Full trust for the immediate caller. This member cannot be used by partially trusted code. For more information, see Using Libraries from Partially Trusted Code.