18 references to CharSize
System.Data (18)
fx\src\data\System\Data\OleDb\oledbconnectionstring.cs (2)
287
int hdrlength = ADP.
CharSize
*UDL.Header.Length;
290
if (length < hdrlength || (0 != length%ADP.
CharSize
)) {
fx\src\data\System\Data\SqlClient\SqlDataReader.cs (1)
313
length /= ADP.
CharSize
;
fx\src\data\System\Data\SqlClient\TdsParser.cs (7)
5249
strValue = strValue.PadRight(md.baseTI.length / ADP.
CharSize
);
6555
int cBytes = ADP.
CharSize
* length;
6563
int cBytes = ADP.
CharSize
* length;
6582
int cBytes = ADP.
CharSize
* length;
6590
int cBytes = ADP.
CharSize
* length;
6622
int byteLength = checked(charLength * ADP.
CharSize
);
6652
int byteLength = checked(charLength * ADP.
CharSize
);
fx\src\data\System\Data\SqlClient\TdsValueSetter.cs (8)
253
_stateObj.Parser.WriteInt(length*ADP.
CharSize
, _stateObj);
268
_stateObj.Parser.WriteShort(length*ADP.
CharSize
, _stateObj);
336
if (length * ADP.
CharSize
> TdsEnums.TYPE_SIZE_LIMIT) { // send as varchar for length greater than 4000
352
_stateObj.Parser.WriteSqlVariantHeader(9 + length * ADP.
CharSize
, TdsEnums.SQLNVARCHAR, 7, _stateObj);
355
_stateObj.Parser.WriteShort(length * ADP.
CharSize
, _stateObj); // propbyte: varlen
362
_stateObj.Parser.WriteLong(length*ADP.
CharSize
, _stateObj); // PLP total length
363
_stateObj.Parser.WriteInt(length*ADP.
CharSize
, _stateObj); // Chunk length
370
_stateObj.Parser.WriteShort(length*ADP.
CharSize
, _stateObj);