N
nobs
Hi
I have two byte arrays (each with a length of 8 bytes)
an I'd like to compare them if they are equal.
The operator == shouldn't work because its not a basic Data Type
so I used the method Equal, but it also isn't working.
right know I use
if(mykey.Length!= keytocheck.Length)
return false;
for (int i = 0; i < mykey.Length; i++)
{
if (mykey != keytocheck)
return false;
}
This is working, but why I cannot use the Equal method??
Can somebody explain it to me?
regards
Norbert
I have two byte arrays (each with a length of 8 bytes)
an I'd like to compare them if they are equal.
The operator == shouldn't work because its not a basic Data Type
so I used the method Equal, but it also isn't working.
right know I use
if(mykey.Length!= keytocheck.Length)
return false;
for (int i = 0; i < mykey.Length; i++)
{
if (mykey != keytocheck)
return false;
}
This is working, but why I cannot use the Equal method??
Can somebody explain it to me?
regards
Norbert