ThrowHelper.ThrowCountArgumentOutOfRange_ArgumentOutOfRange_Count();
}
+ // Hits a code generation bug on ProjectN
+#if !PROJECTN
if (typeof(T) == typeof(byte))
{
int result = SpanHelpers.IndexOf(
return (result >= 0 ? startIndex : 0) + result;
}
+#endif
#if CORECLR
return EqualityComparer<T>.Default.IndexOf(array, value, startIndex, count);
ThrowHelper.ThrowCountArgumentOutOfRange_ArgumentOutOfRange_Count();
}
+ // Hits a code generation bug on ProjectN
+#if !PROJECTN
if (typeof(T) == typeof(byte))
{
int endIndex = startIndex - count + 1;
return (result >= 0 ? endIndex : 0) + result;
}
+#endif
#if CORECLR
return EqualityComparer<T>.Default.LastIndexOf(array, value, startIndex, count);