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