40 references to IsNegative
System.Private.CoreLib (40)
src\runtime\src\libraries\System.Private.CoreLib\src\System\Byte.cs (2)
300
if (!isUnsigned && sbyte.
IsNegative
((sbyte)source[0]))
333
if (!isUnsigned && sbyte.
IsNegative
((sbyte)source[^1]))
src\runtime\src\libraries\System.Private.CoreLib\src\System\Char.cs (2)
1254
if (!isUnsigned && sbyte.
IsNegative
((sbyte)source[0]))
1295
if (!isUnsigned && sbyte.
IsNegative
((sbyte)source[^1]))
src\runtime\src\libraries\System.Private.CoreLib\src\System\Int128.cs (4)
770
if (isUnsigned && sbyte.
IsNegative
(sign) && (source.Length >= Size))
790
if (isUnsigned == sbyte.
IsNegative
((sbyte)source[^Size]))
843
if (isUnsigned && sbyte.
IsNegative
(sign) && (source.Length >= Size))
863
if (isUnsigned == sbyte.
IsNegative
((sbyte)source[Size - 1]))
src\runtime\src\libraries\System.Private.CoreLib\src\System\Int16.cs (4)
318
if (isUnsigned && sbyte.
IsNegative
(sign) && (source.Length >= sizeof(short)))
338
if (isUnsigned == sbyte.
IsNegative
((sbyte)source[^sizeof(short)]))
384
if (isUnsigned && sbyte.
IsNegative
(sign) && (source.Length >= sizeof(short)))
404
if (isUnsigned == sbyte.
IsNegative
((sbyte)source[sizeof(short) - 1]))
src\runtime\src\libraries\System.Private.CoreLib\src\System\Int32.cs (4)
339
if (isUnsigned && sbyte.
IsNegative
(sign) && (source.Length >= sizeof(int)))
359
if (isUnsigned == sbyte.
IsNegative
((sbyte)source[^sizeof(int)]))
412
if (isUnsigned && sbyte.
IsNegative
(sign) && (source.Length >= sizeof(int)))
432
if (isUnsigned == sbyte.
IsNegative
((sbyte)source[sizeof(int) - 1]))
src\runtime\src\libraries\System.Private.CoreLib\src\System\Int64.cs (4)
336
if (isUnsigned && sbyte.
IsNegative
(sign) && (source.Length >= sizeof(long)))
356
if (isUnsigned == sbyte.
IsNegative
((sbyte)source[^sizeof(long)]))
409
if (isUnsigned && sbyte.
IsNegative
(sign) && (source.Length >= sizeof(long)))
429
if (isUnsigned == sbyte.
IsNegative
((sbyte)source[sizeof(long) - 1]))
src\runtime\src\libraries\System.Private.CoreLib\src\System\IntPtr.cs (4)
369
if (isUnsigned && sbyte.
IsNegative
(sign) && (source.Length >= sizeof(nint_t)))
389
if (isUnsigned == sbyte.
IsNegative
((sbyte)source[^sizeof(nint_t)]))
442
if (isUnsigned && sbyte.
IsNegative
(sign) && (source.Length >= sizeof(nint_t)))
462
if (isUnsigned == sbyte.
IsNegative
((sbyte)source[sizeof(nint_t) - 1]))
src\runtime\src\libraries\System.Private.CoreLib\src\System\SByte.cs (6)
321
if (isUnsigned &&
IsNegative
(sign))
341
if (isUnsigned ==
IsNegative
((sbyte)source[^sizeof(sbyte)]))
374
if (isUnsigned &&
IsNegative
(sign))
394
if (isUnsigned ==
IsNegative
((sbyte)source[sizeof(sbyte) - 1]))
777
return
IsNegative
(x) ? y : x;
820
return
IsNegative
(x) ? x : y;
src\runtime\src\libraries\System.Private.CoreLib\src\System\UInt128.cs (2)
1110
if (!isUnsigned && sbyte.
IsNegative
((sbyte)source[0]))
1158
if (!isUnsigned && sbyte.
IsNegative
((sbyte)source[^1]))
src\runtime\src\libraries\System.Private.CoreLib\src\System\UInt16.cs (2)
297
if (!isUnsigned && sbyte.
IsNegative
((sbyte)source[0]))
338
if (!isUnsigned && sbyte.
IsNegative
((sbyte)source[^1]))
src\runtime\src\libraries\System.Private.CoreLib\src\System\UInt32.cs (2)
344
if (!isUnsigned && sbyte.
IsNegative
((sbyte)source[0]))
392
if (!isUnsigned && sbyte.
IsNegative
((sbyte)source[^1]))
src\runtime\src\libraries\System.Private.CoreLib\src\System\UInt64.cs (2)
351
if (!isUnsigned && sbyte.
IsNegative
((sbyte)source[0]))
399
if (!isUnsigned && sbyte.
IsNegative
((sbyte)source[^1]))
src\runtime\src\libraries\System.Private.CoreLib\src\System\UIntPtr.cs (2)
356
if (!isUnsigned && sbyte.
IsNegative
((sbyte)source[0]))
404
if (!isUnsigned && sbyte.
IsNegative
((sbyte)source[^1]))