for (index = 0; index < length; index++)
{
lookUp = Unsafe.Add(ref searchSpace, index);
- if ((object)lookUp is null)
+ if ((object?)lookUp is null)
{
if ((object?)value0 is null || (object?)value1 is null)
{
for (index = 0; index < length; index++)
{
lookUp = Unsafe.Add(ref searchSpace, index);
- if ((object)lookUp is null)
+ if ((object?)lookUp is null)
{
if ((object?)value0 is null || (object?)value1 is null || (object?)value2 is null)
{
for (length--; length >= 0; length--)
{
lookUp = Unsafe.Add(ref searchSpace, length);
- if ((object)lookUp is null)
+ if ((object?)lookUp is null)
{
if ((object?)value0 is null || (object?)value1 is null)
{
for (length--; length >= 0; length--)
{
lookUp = Unsafe.Add(ref searchSpace, length);
- if ((object)lookUp is null)
+ if ((object?)lookUp is null)
{
if ((object?)value0 is null || (object?)value1 is null || (object?)value2 is null)
{
lookUp0 = Unsafe.Add(ref first, index);
lookUp1 = Unsafe.Add(ref second, index);
- if (!(lookUp0?.Equals(lookUp1) ?? (object)lookUp1 is null))
+ if (!(lookUp0?.Equals(lookUp1) ?? (object?)lookUp1 is null))
goto NotEqual;
lookUp0 = Unsafe.Add(ref first, index + 1);
lookUp1 = Unsafe.Add(ref second, index + 1);
- if (!(lookUp0?.Equals(lookUp1) ?? (object)lookUp1 is null))
+ if (!(lookUp0?.Equals(lookUp1) ?? (object?)lookUp1 is null))
goto NotEqual;
lookUp0 = Unsafe.Add(ref first, index + 2);
lookUp1 = Unsafe.Add(ref second, index + 2);
- if (!(lookUp0?.Equals(lookUp1) ?? (object)lookUp1 is null))
+ if (!(lookUp0?.Equals(lookUp1) ?? (object?)lookUp1 is null))
goto NotEqual;
lookUp0 = Unsafe.Add(ref first, index + 3);
lookUp1 = Unsafe.Add(ref second, index + 3);
- if (!(lookUp0?.Equals(lookUp1) ?? (object)lookUp1 is null))
+ if (!(lookUp0?.Equals(lookUp1) ?? (object?)lookUp1 is null))
goto NotEqual;
lookUp0 = Unsafe.Add(ref first, index + 4);
lookUp1 = Unsafe.Add(ref second, index + 4);
- if (!(lookUp0?.Equals(lookUp1) ?? (object)lookUp1 is null))
+ if (!(lookUp0?.Equals(lookUp1) ?? (object?)lookUp1 is null))
goto NotEqual;
lookUp0 = Unsafe.Add(ref first, index + 5);
lookUp1 = Unsafe.Add(ref second, index + 5);
- if (!(lookUp0?.Equals(lookUp1) ?? (object)lookUp1 is null))
+ if (!(lookUp0?.Equals(lookUp1) ?? (object?)lookUp1 is null))
goto NotEqual;
lookUp0 = Unsafe.Add(ref first, index + 6);
lookUp1 = Unsafe.Add(ref second, index + 6);
- if (!(lookUp0?.Equals(lookUp1) ?? (object)lookUp1 is null))
+ if (!(lookUp0?.Equals(lookUp1) ?? (object?)lookUp1 is null))
goto NotEqual;
lookUp0 = Unsafe.Add(ref first, index + 7);
lookUp1 = Unsafe.Add(ref second, index + 7);
- if (!(lookUp0?.Equals(lookUp1) ?? (object)lookUp1 is null))
+ if (!(lookUp0?.Equals(lookUp1) ?? (object?)lookUp1 is null))
goto NotEqual;
index += 8;
lookUp0 = Unsafe.Add(ref first, index);
lookUp1 = Unsafe.Add(ref second, index);
- if (!(lookUp0?.Equals(lookUp1) ?? (object)lookUp1 is null))
+ if (!(lookUp0?.Equals(lookUp1) ?? (object?)lookUp1 is null))
goto NotEqual;
lookUp0 = Unsafe.Add(ref first, index + 1);
lookUp1 = Unsafe.Add(ref second, index + 1);
- if (!(lookUp0?.Equals(lookUp1) ?? (object)lookUp1 is null))
+ if (!(lookUp0?.Equals(lookUp1) ?? (object?)lookUp1 is null))
goto NotEqual;
lookUp0 = Unsafe.Add(ref first, index + 2);
lookUp1 = Unsafe.Add(ref second, index + 2);
- if (!(lookUp0?.Equals(lookUp1) ?? (object)lookUp1 is null))
+ if (!(lookUp0?.Equals(lookUp1) ?? (object?)lookUp1 is null))
goto NotEqual;
lookUp0 = Unsafe.Add(ref first, index + 3);
lookUp1 = Unsafe.Add(ref second, index + 3);
- if (!(lookUp0?.Equals(lookUp1) ?? (object)lookUp1 is null))
+ if (!(lookUp0?.Equals(lookUp1) ?? (object?)lookUp1 is null))
goto NotEqual;
index += 4;
{
lookUp0 = Unsafe.Add(ref first, index);
lookUp1 = Unsafe.Add(ref second, index);
- if (!(lookUp0?.Equals(lookUp1) ?? (object)lookUp1 is null))
+ if (!(lookUp0?.Equals(lookUp1) ?? (object?)lookUp1 is null))
goto NotEqual;
index += 1;
length--;
for (int i = 0; i < minLength; i++)
{
T lookUp = Unsafe.Add(ref second, i);
- int result = (Unsafe.Add(ref first, i)?.CompareTo(lookUp) ?? (((object)lookUp is null) ? 0 : -1));
+ int result = (Unsafe.Add(ref first, i)?.CompareTo(lookUp) ?? (((object?)lookUp is null) ? 0 : -1));
if (result != 0)
return result;
}