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);
2309
_bPrec
= bNewPrec;
2349
_bPrec
= bNewPrec;
2409
ret.
_bPrec
= (byte)precision;
3271
n.
_bPrec
= MaxPrecision;
3370
_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)
1258
ResInteger = Math.Max(x.
_bPrec
- MyScale, y.
_bPrec
- OpScale);
1455
ResInteger = (x.
_bPrec
- x._bScale) + (y.
_bPrec
- y._bScale) + 1;
1694
bPrecD = x.
_bPrec
;
1695
ResScale = Math.Max(x._bScale + y.
_bPrec
+ 1, s_cNumeDivScaleMin);
1696
ResInteger = x.
_bPrec
- x._bScale + y._bScale;
1697
ResPrec = ResScale + x.
_bPrec
+ y.
_bPrec
+ 1;
1817
Debug.Assert(_bScale <=
_bPrec
, "m_bScale <= m_bPrec", "In AssertValid");
1819
Debug.Assert(
_bPrec
> 0, "m_bPrec > 0", "In AssertValid");
1821
Debug.Assert(CLenFromPrec(
_bPrec
) >= _bLen, "CLenFromPrec(m_bPrec) >= m_bLen", "In AssertValid");
2078
if (
_bPrec
== 0 || _bLen < 1)
2304
bNewPrec = (byte)(Math.Min(s_NUMERIC_MAX_PRECISION, Math.Max(1, lAdjust +
_bPrec
)));
3041
Debug.Assert(
_bPrec
>= 1);
3185
if (lPosition < n._bScale - n.
_bPrec
)
3370
_bPrec = dec.
_bPrec
;