7 references to Clamp
ILCompiler.Compiler (4)
Compiler\TypePreinit.cs (4)
936ValueTypeValue.FromInt32((sbyte)(int)Math.Clamp(double.IsNaN(val) ? 0 : val, sbyte.MinValue, sbyte.MaxValue))); 943ValueTypeValue.FromInt32((short)(int)Math.Clamp(double.IsNaN(val) ? 0 : val, short.MinValue, short.MaxValue))); 956ValueTypeValue.FromInt32((byte)(int)Math.Clamp(double.IsNaN(val) ? 0 : val, byte.MinValue, byte.MaxValue))); 963ValueTypeValue.FromInt32((ushort)(int)Math.Clamp(double.IsNaN(val) ? 0 : val, ushort.MinValue, ushort.MaxValue)));
Microsoft.Extensions.Diagnostics.ResourceMonitoring (1)
Linux\LinuxUtilizationParserCgroupV2.cs (1)
846shares = Math.Clamp(shares, MinValueInRange, MaxValueInRange);
System.Windows.Forms (2)
System\Windows\Forms\Controls\ToolStrips\ToolStripDropDown.cs (1)
571value = Math.Clamp(value, 0.0d, 1.0d);
System\Windows\Forms\Form.cs (1)
1569value = Math.Clamp(value, 0.0d, 1.0d);