20 writes to _bPrec
System.Data.Common (20)
System\Data\SQLTypes\SQLDecimal.cs (20)
417
_bPrec
= MaxPrecision; // BActualPrec does not work if m_bPrec uninitialized!
419
_bPrec
= bPrec; // restore current value
471
_bPrec
=
520
_bPrec
= 0; // The this object cannot be used before all of its fields are assigned to
523
_bPrec
= CalculatePrecision();
550
_bPrec
= BGetPrecUI4(_data1);
578
_bPrec
= BGetPrecUI8(dwl);
591
_bPrec
= bPrecision;
627
_bPrec
= bPrecision;
683
_bPrec
= s_NUMERIC_MAX_PRECISION;
752
_bPrec
= (byte)(ulLen + _bScale);
789
_bPrec
= bPrec;
1010
snResult.
_bPrec
= 1;
1099
snResult.
_bPrec
= (byte)iData;
1104
snResult.
_bPrec
= (byte)(iData - 1);
2302
_bPrec
= bNewPrec;
2342
_bPrec
= bNewPrec;
2402
ret.
_bPrec
= (byte)precision;
3264
n.
_bPrec
= MaxPrecision;
3363
_bPrec
= dec._bPrec;
22 references to _bPrec
System.Data.Common (22)
System\Data\SQLTypes\SQLDecimal.cs (22)
416
byte bPrec =
_bPrec
; // store current value
850
return
_bPrec
;
1105
snResult._bScale = (byte)(snResult.
_bPrec
- lDecPnt);
1109
if (snResult.
_bPrec
> s_NUMERIC_MAX_PRECISION)
1114
if (snResult.
_bPrec
== 0)
1251
ResInteger = Math.Max(x.
_bPrec
- MyScale, y.
_bPrec
- OpScale);
1448
ResInteger = (x.
_bPrec
- x._bScale) + (y.
_bPrec
- y._bScale) + 1;
1687
bPrecD = x.
_bPrec
;
1688
ResScale = Math.Max(x._bScale + y.
_bPrec
+ 1, s_cNumeDivScaleMin);
1689
ResInteger = x.
_bPrec
- x._bScale + y._bScale;
1690
ResPrec = ResScale + x.
_bPrec
+ y.
_bPrec
+ 1;
1810
Debug.Assert(_bScale <=
_bPrec
, "m_bScale <= m_bPrec", "In AssertValid");
1812
Debug.Assert(
_bPrec
> 0, "m_bPrec > 0", "In AssertValid");
1814
Debug.Assert(CLenFromPrec(
_bPrec
) >= _bLen, "CLenFromPrec(m_bPrec) >= m_bLen", "In AssertValid");
2071
if (
_bPrec
== 0 || _bLen < 1)
2297
bNewPrec = (byte)(Math.Min(s_NUMERIC_MAX_PRECISION, Math.Max(1, lAdjust +
_bPrec
)));
3034
Debug.Assert(
_bPrec
>= 1);
3178
if (lPosition < n._bScale - n.
_bPrec
)
3363
_bPrec = dec.
_bPrec
;