6 writes to _defaultEncoding
System.Data (6)
fx\src\data\System\Data\SqlClient\TdsParser.cs (6)
2403
_defaultEncoding
= System.Text.Encoding.GetEncoding(_defaultCodePage);
2411
_defaultEncoding
= System.Text.Encoding.GetEncoding(_defaultCodePage);
2472
_defaultEncoding
= System.Text.Encoding.GetEncoding(_defaultCodePage);
9505
_defaultEncoding
= metadata.encoding;
9639
_defaultEncoding
= saveEncoding;
9651
_defaultEncoding
= saveEncoding;
34 references to _defaultEncoding
System.Data (34)
fx\src\data\System\Data\SqlClient\TdsParser.cs (29)
3522
rec.encoding =
_defaultEncoding
;
4271
col.encoding =
_defaultEncoding
;
4990
encoding =
_defaultEncoding
;
5223
encoding =
_defaultEncoding
;
5839
length = GetEncodingCharLength((string)value, length, 0,
_defaultEncoding
);
5900
return WriteEncodingChar(s,
_defaultEncoding
, stateObj, canAccumulate);
5993
length = GetEncodingCharLength((string)value, length, 0,
_defaultEncoding
);
6055
return WriteEncodingChar(s,
_defaultEncoding
, stateObj, canAccumulate);
6680
encoding =
_defaultEncoding
;
6697
encoding =
_defaultEncoding
;
6725
if (null ==
_defaultEncoding
) {
6729
encoding =
_defaultEncoding
;
8343
codePageByteSize = GetEncodingCharLength(s, actualSize, param.Offset,
_defaultEncoding
);
9429
if (null ==
_defaultEncoding
)
9435
actualLengthInBytes =
_defaultEncoding
.GetByteCount(stringValue);
9493
Encoding saveEncoding =
_defaultEncoding
;
9545
if (null ==
_defaultEncoding
) {
9558
ccbStringBytes =
_defaultEncoding
.GetByteCount(stringValue);
10029
return WriteEncodingChar(sch, actualLength, offset,
_defaultEncoding
, stateObj, canAccumulate:false);
10033
return WriteEncodingChar(((SqlString)value).Value, actualLength, offset,
_defaultEncoding
, stateObj, canAccumulate:false);
10592
return NullIfCompletedWriteTask(WriteXmlFeed((XmlDataFeed)value, stateObj, needBom:true, encoding:
_defaultEncoding
, size:paramSize));
10595
return NullIfCompletedWriteTask(WriteTextFeed(tdf,
_defaultEncoding
, false, stateObj, paramSize));
10606
return WriteEncodingChar((string)value, actualLength, offset,
_defaultEncoding
, stateObj, canAccumulate: false);
10815
return SerializeEncodingChar((string)value, actualLength, offset,
_defaultEncoding
);
10983
return SerializeEncodingChar(sch, actualLength, offset,
_defaultEncoding
);
10987
return SerializeEncodingChar(((SqlString)value).Value, actualLength, offset,
_defaultEncoding
);
11279
if (null ==
_defaultEncoding
) {
11284
enc =
_defaultEncoding
;
11430
TraceObjectClass(
_defaultEncoding
),
fx\src\data\System\Data\SqlClient\TdsValueSetter.cs (5)
234
_encoder = _stateObj.Parser.
_defaultEncoding
.GetEncoder();
320
bytes = _stateObj.Parser.
_defaultEncoding
.GetBytes(value);
324
bytes = _stateObj.Parser.
_defaultEncoding
.GetBytes(chars);
340
bytes = _stateObj.Parser.
_defaultEncoding
.GetBytes(value);
343
bytes = _stateObj.Parser.
_defaultEncoding
.GetBytes(value.ToCharArray(offset, length));