4 references to Clamp
System.Diagnostics.TextWriterTraceListener (1)
System\Diagnostics\XmlWriterTraceListener.cs (1)
231InternalWrite(Math.Clamp((int)eventType, 0, 255));
System.Private.CoreLib (3)
src\libraries\System.Private.CoreLib\src\System\Int32.cs (1)
664public static int Clamp(int value, int min, int max) => Math.Clamp(value, min, max);
src\libraries\System.Private.CoreLib\src\System\Number.Parsing.cs (1)
736value = new decimal(0, 0, 0, sign, (byte)Math.Clamp(-e, 0, 28));
src\libraries\System.Private.CoreLib\src\System\Text\TranscodingStream.cs (1)
560int rentalLength = Math.Clamp(remainingOuterEncodedBytes.Length, MinWriteRentedArraySize, MaxWriteRentedArraySize);