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