125 references to XmlConverter
System.Private.DataContractSerialization (125)
System\Runtime\Serialization\EnumDataContract.cs (2)
405
return (long)
XmlConverter
.ToUInt64(value);
409
return
XmlConverter
.ToInt64(value);
System\Runtime\Serialization\Json\JsonObjectDataContract.cs (2)
98
double doubleValue =
XmlConverter
.ToDouble(value);
109
return
XmlConverter
.ToDouble(value);
System\Runtime\Serialization\Json\XmlJsonWriter.cs (1)
947
if (!((_dataType == JsonDataType.Array || _dataType == JsonDataType.Object || _nodeType == JsonNodeType.EndElement) &&
XmlConverter
.IsWhitespace(text)))
System\Runtime\Serialization\XmlReaderDelegator.cs (4)
630
return
XmlConverter
.ToUInt64(str);
640
return
XmlConverter
.ToUInt64(str);
668
return
XmlConverter
.ToTimeSpan(str);
674
return
XmlConverter
.ToTimeSpan(str);
System\Xml\StringHandle.cs (2)
153
byte[] buffer =
XmlConverter
.ToBytes(s_constStrings[_key]);
161
byte[] buffer =
XmlConverter
.ToBytes(_bufferReader.GetEscapedString(_offset, _length));
System\Xml\ValueHandle.cs (36)
133
return ch <= char.MaxValue &&
XmlConverter
.IsWhitespace((char)ch);
212
return
XmlConverter
.ToBoolean(_bufferReader.Buffer, _offset, _length);
221
return
XmlConverter
.ToBoolean(GetString());
254
return
XmlConverter
.ToInt32(_bufferReader.Buffer, _offset, _length);
255
return
XmlConverter
.ToInt32(GetString());
283
return
XmlConverter
.ToInt64(_bufferReader.Buffer, _offset, _length);
285
return
XmlConverter
.ToInt64(GetString());
304
return
XmlConverter
.ToUInt64(_bufferReader.Buffer, _offset, _length);
305
return
XmlConverter
.ToUInt64(GetString());
331
return
XmlConverter
.ToSingle(_bufferReader.Buffer, _offset, _length);
332
return
XmlConverter
.ToSingle(GetString());
353
return
XmlConverter
.ToDouble(_bufferReader.Buffer, _offset, _length);
354
return
XmlConverter
.ToDouble(GetString());
371
return
XmlConverter
.ToDecimal(_bufferReader.Buffer, _offset, _length);
372
return
XmlConverter
.ToDecimal(GetString());
379
return
XmlConverter
.ToDateTime(GetInt64());
383
return
XmlConverter
.ToDateTime(_bufferReader.Buffer, _offset, _length);
385
return
XmlConverter
.ToDateTime(GetString());
393
return
XmlConverter
.ToUniqueId(_bufferReader.Buffer, _offset, _length);
394
return
XmlConverter
.ToUniqueId(GetString());
402
return
XmlConverter
.ToTimeSpan(_bufferReader.Buffer, _offset, _length);
403
return
XmlConverter
.ToTimeSpan(GetString());
411
return
XmlConverter
.ToGuid(_bufferReader.Buffer, _offset, _length);
412
return
XmlConverter
.ToGuid(GetString());
459
return DataContractSerializer.Base64Encoding.GetBytes(
XmlConverter
.StripWhitespace(GetString()));
486
return
XmlConverter
.ToString(ToInt());
488
return
XmlConverter
.ToString(GetInt64());
490
return
XmlConverter
.ToString(GetUInt64());
492
return
XmlConverter
.ToString(GetSingle());
494
return
XmlConverter
.ToString(GetDouble());
496
return
XmlConverter
.ToString(GetDecimal());
498
return
XmlConverter
.ToString(ToDateTime());
514
return
XmlConverter
.ToString(ToList());
516
return
XmlConverter
.ToString(ToUniqueId());
518
return
XmlConverter
.ToString(ToGuid());
520
return
XmlConverter
.ToString(ToTimeSpan());
System\Xml\XmlBaseReader.cs (13)
841
if (!
XmlConverter
.IsWhitespace(_value))
1508
int newCount =
XmlConverter
.StripWhitespace(chars.AsSpan(0, charCount));
1553
return
XmlConverter
.ToBoolean(ReadContentAsString());
1565
return
XmlConverter
.ToInt64(ReadContentAsString());
1577
return
XmlConverter
.ToInt32(ReadContentAsString());
1589
return
XmlConverter
.ToDateTime(ReadContentAsString());
1601
return
XmlConverter
.ToDouble(ReadContentAsString());
1613
return
XmlConverter
.ToSingle(ReadContentAsString());
1625
return
XmlConverter
.ToDecimal(ReadContentAsString());
1637
return
XmlConverter
.ToUniqueId(ReadContentAsString());
1649
return
XmlConverter
.ToTimeSpan(ReadContentAsString());
1661
return
XmlConverter
.ToGuid(ReadContentAsString());
1688
return
XmlConverter
.ToUInt64(ReadContentAsString());
System\Xml\XmlBaseWriter.cs (14)
753
if (!
XmlConverter
.IsWhitespace(ch))
759
if (!
XmlConverter
.IsWhitespace(s))
765
if (!
XmlConverter
.IsWhitespace(chars.AsSpan(offset, count)))
1250
WriteAttributeText(
XmlConverter
.ToString(value));
1267
WriteAttributeText(
XmlConverter
.ToString(value));
1284
WriteAttributeText(
XmlConverter
.ToString(value));
1301
WriteAttributeText(
XmlConverter
.ToString(value));
1318
WriteAttributeText(
XmlConverter
.ToString(value));
1335
WriteAttributeText(
XmlConverter
.ToString(value));
1352
WriteAttributeText(
XmlConverter
.ToString(value));
1374
WriteAttributeText(
XmlConverter
.ToString(value));
1393
WriteAttributeText(
XmlConverter
.ToString(value));
1410
WriteAttributeText(
XmlConverter
.ToString(value));
1427
WriteAttributeText(
XmlConverter
.ToString(value));
System\Xml\XmlBufferReader.cs (8)
519
return i +
XmlConverter
.ToChars(buffer, offset + i, length - i, chars, i);
532
return i +
XmlConverter
.ToChars(buffer, offset + i, length - i, chars, charOffset + i);
547
return
XmlConverter
.ToStringUnicode(_buffer, offset, length);
779
return
XmlConverter
.IsWhitespace(s);
784
return
XmlConverter
.IsWhitespace(_buffer.AsSpan(offset, length));
792
if (!
XmlConverter
.IsWhitespace(ch))
878
return
XmlConverter
.ToString(buffer, offset1, length1) == s2;
911
return
XmlConverter
.ToString(buffer, offset1, length1) == s2;
System\Xml\XmlDictionaryReader.cs (15)
595
guids[i] =
XmlConverter
.ToGuid(values[i]);
603
uniqueIds[i] =
XmlConverter
.ToUniqueId(values[i]);
651
return
XmlConverter
.ToDecimal(ReadContentAsString());
656
return
XmlConverter
.ToSingle(ReadContentAsString());
661
return
XmlConverter
.ToUniqueId(ReadContentAsString());
666
return
XmlConverter
.ToGuid(ReadContentAsString());
671
return
XmlConverter
.ToTimeSpan(ReadContentAsString());
677
XmlConverter
.ToQualifiedName(ReadContentAsString(), out prefix, out localName);
712
value =
XmlConverter
.ToBoolean(string.Empty);
732
value =
XmlConverter
.ToInt32(string.Empty);
752
value =
XmlConverter
.ToInt64(string.Empty);
772
value =
XmlConverter
.ToSingle(string.Empty);
792
value =
XmlConverter
.ToDouble(string.Empty);
812
value =
XmlConverter
.ToDecimal(string.Empty);
929
value =
XmlConverter
.ToTimeSpan(string.Empty);
System\Xml\XmlSigningNodeWriter.cs (12)
29
_chars = new byte[
XmlConverter
.MaxPrimitiveChars];
219
int count =
XmlConverter
.ToChars(value, _chars, 0);
229
int count =
XmlConverter
.ToChars(value, _chars, 0);
239
int count =
XmlConverter
.ToChars(value, _chars, 0);
249
int count =
XmlConverter
.ToChars(value, _chars, 0);
259
int count =
XmlConverter
.ToChars(value, _chars, 0);
269
int count =
XmlConverter
.ToChars(value, _chars, 0);
279
int count =
XmlConverter
.ToChars(value, _chars, 0);
289
int count =
XmlConverter
.ToChars(value, _chars, 0);
299
string s =
XmlConverter
.ToString(value);
309
string s =
XmlConverter
.ToString(value);
319
string s =
XmlConverter
.ToString(value);
System\Xml\XmlUTF8TextWriter.cs (16)
564
byte[] buffer = GetBuffer(
XmlConverter
.MaxBoolChars, out int offset);
565
Advance(
XmlConverter
.ToChars(value, buffer, offset));
570
byte[] buffer = GetBuffer(
XmlConverter
.MaxDecimalChars, out int offset);
571
Advance(
XmlConverter
.ToChars(value, buffer, offset));
576
byte[] buffer = GetBuffer(
XmlConverter
.MaxDoubleChars, out int offset);
577
Advance(
XmlConverter
.ToChars(value, buffer, offset));
582
byte[] buffer = GetBuffer(
XmlConverter
.MaxFloatChars, out int offset);
583
Advance(
XmlConverter
.ToChars(value, buffer, offset));
588
byte[] buffer = GetBuffer(
XmlConverter
.MaxDateTimeChars, out int offset);
589
Advance(
XmlConverter
.ToChars(value, buffer, offset));
609
byte[] buffer = GetBuffer(
XmlConverter
.MaxInt32Chars, out int offset);
610
Advance(
XmlConverter
.ToChars(value, buffer, offset));
615
byte[] buffer = GetBuffer(
XmlConverter
.MaxInt64Chars, out int offset);
616
Advance(
XmlConverter
.ToChars(value, buffer, offset));
621
byte[] buffer = GetBuffer(
XmlConverter
.MaxUInt64Chars, out int offset);
622
Advance(
XmlConverter
.ToChars(value, buffer, offset));