This code will return true:
private bool SimpleComparison()
{
return new byte() == new byte();
}
This code will return false:
private bool AnotherSimpleComparison()
{
return new byte[0] == new byte[0];
}
Can't understand, why? As I understand, in the second case it is differend addresses? And what about first case?