18 references to CharSize
System.Data (18)
fx\src\data\System\Data\OleDb\oledbconnectionstring.cs (2)
287int hdrlength = ADP.CharSize*UDL.Header.Length; 290if (length < hdrlength || (0 != length%ADP.CharSize)) {
fx\src\data\System\Data\SqlClient\SqlDataReader.cs (1)
313length /= ADP.CharSize;
fx\src\data\System\Data\SqlClient\TdsParser.cs (7)
5249strValue = strValue.PadRight(md.baseTI.length / ADP.CharSize); 6555int cBytes = ADP.CharSize * length; 6563int cBytes = ADP.CharSize * length; 6582int cBytes = ADP.CharSize * length; 6590int cBytes = ADP.CharSize * length; 6622int byteLength = checked(charLength * ADP.CharSize); 6652int 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); 336if (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);