17 references to ToInt32
BasketService (1)
Models\DecimalValue.cs (1)
20var nanos = decimal.ToInt32((value - units) * NanoFactor);
MyFrontend (1)
playground\TestShop\BasketService\Models\DecimalValue.cs (1)
20var nanos = decimal.ToInt32((value - units) * NanoFactor);
System.Linq.Expressions (1)
System\Linq\Expressions\Compiler\ILGen.cs (1)
988int intValue = decimal.ToInt32(value);
System.Private.CoreLib (4)
src\libraries\System.Private.CoreLib\src\System\Convert.cs (1)
1081return decimal.ToInt32(decimal.Round(value, 0));
src\libraries\System.Private.CoreLib\src\System\Decimal.cs (3)
734temp = ToInt32(value); 754temp = ToInt32(value); 950public static explicit operator int(decimal value) => ToInt32(value);
System.Windows.Forms (6)
System\Windows\Forms\Controls\DataGridView\DataGridViewImageCell.cs (6)
435preferredSize = new Size(0, Math.Min(img.Height, decimal.ToInt32((decimal)img.Height * imgWidthAllowed / img.Width))); 447preferredSize = new Size(0, Math.Min(ico.Height, decimal.ToInt32((decimal)ico.Height * icoWidthAllowed / ico.Width))); 470preferredSize = new Size(Math.Min(img.Width, decimal.ToInt32((decimal)img.Width * imgHeightAllowed / img.Height)), 0); 482preferredSize = new Size(Math.Min(ico.Width, decimal.ToInt32((decimal)ico.Width * icoHeightAllowed / ico.Height)), 0); 594decimal.ToInt32((decimal)imgWidth * bounds.Height / imgHeight), 604decimal.ToInt32((decimal)imgHeight * bounds.Width / imgWidth));
WinFormsControlsTest (4)
ScrollBars.cs (4)
17hScrollBar.Maximum = decimal.ToInt32(numericMaximum.Value); 18vScrollBar.Maximum = decimal.ToInt32(numericMaximum.Value); 25hScrollBar.Minimum = decimal.ToInt32(numericMinimum.Value); 26vScrollBar.Minimum = decimal.ToInt32(numericMinimum.Value);