Compare two byte arrays

Namespace:  SnmpSharpNet
Assembly:  SnmpSharpNet (in SnmpSharpNet.dll) Version: 0.5.0.0 (0.5.0.0)

Syntax

         
 C#  Visual Basic  Visual C++ 
public static bool Equals(
	byte[] buf1,
	byte[] buf2
)
Public Shared Function Equals ( _
	buf1 As Byte(), _
	buf2 As Byte() _
) As Boolean
public:
static bool Equals(
	array<unsigned char>^ buf1, 
	array<unsigned char>^ buf2
)

Parameters

buf1
array< Byte >[]()[]
First byte array
buf2
array< Byte >[]()[]
Second byte array

Return Value

True if array contents are the same, otherwise false.

See Also