24 references to MidpointRounding
mscorlib (14)
system\decimal.cs (5)
782public static Decimal Round(Decimal d, MidpointRounding mode) { 787public static Decimal Round(Decimal d, int decimals, MidpointRounding mode) { 790if (mode < MidpointRounding.ToEven || mode > MidpointRounding.AwayFromZero) { 795if (mode == MidpointRounding.ToEven) {
system\math.cs (9)
86private static unsafe double InternalRound(double value, int digits, MidpointRounding mode) { 90if (mode == MidpointRounding.AwayFromZero) { 138return InternalRound(value, digits, MidpointRounding.ToEven); 141public static double Round(double value, MidpointRounding mode) { 145public static double Round(double value, int digits, MidpointRounding mode) { 148if (mode < MidpointRounding.ToEven || mode > MidpointRounding.AwayFromZero) { 163public static Decimal Round(Decimal d, MidpointRounding mode) { 167public static Decimal Round(Decimal d, int decimals, MidpointRounding mode) {
PresentationCore (3)
Core\CSharp\MS\Internal\TextFormatting\TextFormatterImp.cs (3)
697return RoundDipForDisplayMode(value, pixelsPerDip, MidpointRounding.ToEven); 700private static double RoundDipForDisplayMode(double value, double pixelsPerDip, MidpointRounding midpointRounding) 720return RoundDipForDisplayMode(value, pixelsPerDip, MidpointRounding.AwayFromZero);
System.Data.Linq (4)
SqlClient\Query\SqlMethodCallConverter.cs (4)
453if (mc.Arguments[mc.Arguments.Count - 1].ClrType == typeof(MidpointRounding) 2079if ((mc.Arguments[nParams - 1].ClrType != typeof(MidpointRounding))) { 2095if ((MidpointRounding)this.Eval(roundingMethod) == MidpointRounding.AwayFromZero) {
System.Windows.Forms (3)
winforms\Managed\System\WinForms\DataGridViewMethods.cs (3)
1006dataGridViewColumn.DesiredFillWidth = (int)Math.Round(desiredFillWidth, MidpointRounding.AwayFromZero); 1152mostDeservingDataGridViewColumn.DesiredFillWidth = Math.Min(oldDesiredWidth, (int)Math.Round(floatDesiredWidth, MidpointRounding.AwayFromZero)); 1220mostDeservingDataGridViewColumn.DesiredFillWidth = Math.Max(mostDeservingDataGridViewColumn.MinimumWidth, (int)Math.Round(floatDesiredWidth, MidpointRounding.AwayFromZero));