Compares a section of one byte array with the section of a second byte array.

Namespace: CardWerk.SmartCard.Util
Assembly: CardWerk.SmartCard (in CardWerk.SmartCard.dll)

Public Shared Function Compare( _ 
ByVal array1 As Byte(), _ 
ByVal offset1 As Integer, _ 
ByVal array2 As Byte(), _ 
ByVal offset2 As Integer, _ 
ByVal comparisonLength As Integer
) As Boolean
This language is not supported or no code example is available.
public static bool Compare( 
byte[] array1
int offset1
byte[] array2
int offset2
int comparisonLength 
)
This language is not supported or no code example is available.
public:  
static bool Compare( 
array< Byte >^ array1
int offset1
array< Byte >^ array2
int offset2
int comparisonLength 
)
This language is not supported or no code example is available.
public static function Compare( 
array1 : byte[], 
offset1 : int
array2 : byte[], 
offset2 : int
comparisonLength : int 
) : boolean;
This language is not supported or no code example is available.

Parameters

array1
Type: byte[]

1st byte array.

offset1
Type: int

Beginning of section in 1st byte array.

array2
Type: byte[]

2nd byte array.

offset2
Type: int

Beginning of section in 2nd byte array.

comparisonLength
Type: int

length of section.

Return Value

Type: bool

True if the two byte sequences are identical.

.NET Framework

Supported in: 4.6.1, 4.6.2, 4.7, 4.7.1, 4.7.2, 4.8, 4.8.1

.NET Core

Supported in: 2.0, 2.1, 2.2, 3.0, 3.1, 5.0, 6.0, 7.0, 8.0

.NET Standard

Supported in: 2.0