40 references to IsNegative
System.Private.CoreLib (40)
src\libraries\System.Private.CoreLib\src\System\Byte.cs (2)
303if (!isUnsigned && sbyte.IsNegative((sbyte)source[0])) 336if (!isUnsigned && sbyte.IsNegative((sbyte)source[^1]))
src\libraries\System.Private.CoreLib\src\System\Char.cs (2)
1184if (!isUnsigned && sbyte.IsNegative((sbyte)source[0])) 1234if (!isUnsigned && sbyte.IsNegative((sbyte)source[^1]))
src\libraries\System.Private.CoreLib\src\System\Int128.cs (4)
770if (isUnsigned && sbyte.IsNegative(sign) && (source.Length >= Size)) 790if (isUnsigned == sbyte.IsNegative((sbyte)source[^Size])) 852if (isUnsigned && sbyte.IsNegative(sign) && (source.Length >= Size)) 872if (isUnsigned == sbyte.IsNegative((sbyte)source[Size - 1]))
src\libraries\System.Private.CoreLib\src\System\Int16.cs (4)
314if (isUnsigned && sbyte.IsNegative(sign) && (source.Length >= sizeof(short))) 334if (isUnsigned == sbyte.IsNegative((sbyte)source[^sizeof(short)])) 389if (isUnsigned && sbyte.IsNegative(sign) && (source.Length >= sizeof(short))) 409if (isUnsigned == sbyte.IsNegative((sbyte)source[sizeof(short) - 1]))
src\libraries\System.Private.CoreLib\src\System\Int32.cs (4)
334if (isUnsigned && sbyte.IsNegative(sign) && (source.Length >= sizeof(int))) 354if (isUnsigned == sbyte.IsNegative((sbyte)source[^sizeof(int)])) 416if (isUnsigned && sbyte.IsNegative(sign) && (source.Length >= sizeof(int))) 436if (isUnsigned == sbyte.IsNegative((sbyte)source[sizeof(int) - 1]))
src\libraries\System.Private.CoreLib\src\System\Int64.cs (4)
331if (isUnsigned && sbyte.IsNegative(sign) && (source.Length >= sizeof(long))) 351if (isUnsigned == sbyte.IsNegative((sbyte)source[^sizeof(long)])) 413if (isUnsigned && sbyte.IsNegative(sign) && (source.Length >= sizeof(long))) 433if (isUnsigned == sbyte.IsNegative((sbyte)source[sizeof(long) - 1]))
src\libraries\System.Private.CoreLib\src\System\IntPtr.cs (4)
336if (isUnsigned && sbyte.IsNegative(sign) && (source.Length >= sizeof(nint_t))) 356if (isUnsigned == sbyte.IsNegative((sbyte)source[^sizeof(nint_t)])) 418if (isUnsigned && sbyte.IsNegative(sign) && (source.Length >= sizeof(nint_t))) 438if (isUnsigned == sbyte.IsNegative((sbyte)source[sizeof(nint_t) - 1]))
src\libraries\System.Private.CoreLib\src\System\SByte.cs (6)
317if (isUnsigned && IsNegative(sign)) 337if (isUnsigned == IsNegative((sbyte)source[^sizeof(sbyte)])) 370if (isUnsigned && IsNegative(sign)) 390if (isUnsigned == IsNegative((sbyte)source[sizeof(sbyte) - 1])) 780return IsNegative(x) ? y : x; 823return IsNegative(x) ? x : y;
src\libraries\System.Private.CoreLib\src\System\UInt128.cs (2)
829if (!isUnsigned && sbyte.IsNegative((sbyte)source[0])) 886if (!isUnsigned && sbyte.IsNegative((sbyte)source[^1]))
src\libraries\System.Private.CoreLib\src\System\UInt16.cs (2)
300if (!isUnsigned && sbyte.IsNegative((sbyte)source[0])) 350if (!isUnsigned && sbyte.IsNegative((sbyte)source[^1]))
src\libraries\System.Private.CoreLib\src\System\UInt32.cs (2)
321if (!isUnsigned && sbyte.IsNegative((sbyte)source[0])) 378if (!isUnsigned && sbyte.IsNegative((sbyte)source[^1]))
src\libraries\System.Private.CoreLib\src\System\UInt64.cs (2)
320if (!isUnsigned && sbyte.IsNegative((sbyte)source[0])) 377if (!isUnsigned && sbyte.IsNegative((sbyte)source[^1]))
src\libraries\System.Private.CoreLib\src\System\UIntPtr.cs (2)
324if (!isUnsigned && sbyte.IsNegative((sbyte)source[0])) 381if (!isUnsigned && sbyte.IsNegative((sbyte)source[^1]))