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