141 references to XmlConverter
System.Runtime.Serialization (141)
System\Runtime\Serialization\EnumDataContract.cs (2)
451
return (long)
XmlConverter
.ToUInt64(value);
453
return
XmlConverter
.ToInt64(value);
System\Runtime\Serialization\Json\JsonObjectDataContract.cs (2)
96
double doubleValue =
XmlConverter
.ToDouble(value);
107
return
XmlConverter
.ToDouble(value);
System\Runtime\Serialization\Json\XmlJsonWriter.cs (1)
1122
if (!((this.dataType == JsonDataType.Array || this.dataType == JsonDataType.Object || this.nodeType == JsonNodeType.EndElement) &&
XmlConverter
.IsWhitespace(text)))
System\Runtime\Serialization\XmlReaderDelegator.cs (4)
663
return
XmlConverter
.ToUInt64(str);
673
return
XmlConverter
.ToUInt64(str);
704
return
XmlConverter
.ToTimeSpan(str);
710
return
XmlConverter
.ToTimeSpan(str);
System\Xml\StringHandle.cs (2)
149
byte[] buffer =
XmlConverter
.ToBytes(constStrings[key]);
157
byte[] buffer =
XmlConverter
.ToBytes(bufferReader.GetEscapedString(this.offset, this.length));
System\Xml\ValueHandle.cs (36)
148
return
XmlConverter
.IsWhitespace((char)ch);
227
return
XmlConverter
.ToBoolean(bufferReader.Buffer, offset, length);
236
return
XmlConverter
.ToBoolean(GetString());
269
return
XmlConverter
.ToInt32(bufferReader.Buffer, offset, length);
270
return
XmlConverter
.ToInt32(GetString());
298
return
XmlConverter
.ToInt64(bufferReader.Buffer, offset, length);
300
return
XmlConverter
.ToInt64(GetString());
319
return
XmlConverter
.ToUInt64(bufferReader.Buffer, offset, length);
320
return
XmlConverter
.ToUInt64(GetString());
343
return
XmlConverter
.ToSingle(bufferReader.Buffer, offset, length);
344
return
XmlConverter
.ToSingle(GetString());
365
return
XmlConverter
.ToDouble(bufferReader.Buffer, offset, length);
366
return
XmlConverter
.ToDouble(GetString());
383
return
XmlConverter
.ToDecimal(bufferReader.Buffer, offset, length);
384
return
XmlConverter
.ToDecimal(GetString());
391
return
XmlConverter
.ToDateTime(GetInt64());
395
return
XmlConverter
.ToDateTime(bufferReader.Buffer, offset, length);
397
return
XmlConverter
.ToDateTime(GetString());
405
return
XmlConverter
.ToUniqueId(bufferReader.Buffer, offset, length);
406
return
XmlConverter
.ToUniqueId(GetString());
414
return
XmlConverter
.ToTimeSpan(bufferReader.Buffer, offset, length);
415
return
XmlConverter
.ToTimeSpan(GetString());
423
return
XmlConverter
.ToGuid(bufferReader.Buffer, offset, length);
424
return
XmlConverter
.ToGuid(GetString());
471
return Base64Encoding.GetBytes(
XmlConverter
.StripWhitespace(GetString()));
498
return
XmlConverter
.ToString(ToInt());
500
return
XmlConverter
.ToString(GetInt64());
502
return
XmlConverter
.ToString(GetUInt64());
504
return
XmlConverter
.ToString(GetSingle());
506
return
XmlConverter
.ToString(GetDouble());
508
return
XmlConverter
.ToString(GetDecimal());
510
return
XmlConverter
.ToString(ToDateTime());
526
return
XmlConverter
.ToString(ToList());
528
return
XmlConverter
.ToString(ToUniqueId());
530
return
XmlConverter
.ToString(ToGuid());
532
return
XmlConverter
.ToString(ToTimeSpan());
System\Xml\XmlBaseReader.cs (13)
870
if (!
XmlConverter
.IsWhitespace(this.value))
1620
while (j < charCount &&
XmlConverter
.IsWhitespace(chars[j]))
1667
return
XmlConverter
.ToBoolean(ReadContentAsString());
1679
return
XmlConverter
.ToInt64(ReadContentAsString());
1691
return
XmlConverter
.ToInt32(ReadContentAsString());
1703
return
XmlConverter
.ToDateTime(ReadContentAsString());
1715
return
XmlConverter
.ToDouble(ReadContentAsString());
1727
return
XmlConverter
.ToSingle(ReadContentAsString());
1739
return
XmlConverter
.ToDecimal(ReadContentAsString());
1751
return
XmlConverter
.ToUniqueId(ReadContentAsString());
1763
return
XmlConverter
.ToTimeSpan(ReadContentAsString());
1775
return
XmlConverter
.ToGuid(ReadContentAsString());
1802
return
XmlConverter
.ToUInt64(ReadContentAsString());
System\Xml\XmlBaseWriter.cs (18)
1124
WriteAttributeText(
XmlConverter
.ToString(value));
1141
WriteAttributeText(
XmlConverter
.ToString(value));
1158
WriteAttributeText(
XmlConverter
.ToString(value));
1175
WriteAttributeText(
XmlConverter
.ToString(value));
1192
WriteAttributeText(
XmlConverter
.ToString(value));
1209
WriteAttributeText(
XmlConverter
.ToString(value));
1226
WriteAttributeText(
XmlConverter
.ToString(value));
1248
WriteAttributeText(
XmlConverter
.ToString(value));
1268
WriteAttributeText(
XmlConverter
.ToString(value));
1285
WriteAttributeText(
XmlConverter
.ToString(value));
1302
WriteAttributeText(
XmlConverter
.ToString(value));
1341
WriteAttributeText(
XmlConverter
.Base64Encoding.GetString(trailBytes, 0, trailByteCount));
1342
WriteAttributeText(
XmlConverter
.Base64Encoding.GetString(buffer, offset, actualByteCount - trailByteCount));
1443
writer.WriteAttributeText(
XmlConverter
.Base64Encoding.GetString(writer.trailBytes, 0, writer.trailByteCount));
1444
writer.WriteAttributeText(
XmlConverter
.Base64Encoding.GetString(buffer, this.offset, actualByteCount - writer.trailByteCount));
1692
WriteAttributeText(
XmlConverter
.Base64Encoding.GetString(trailBytes, 0, trailByteCount));
2530
this.writer.WriteAttributeText(
XmlConverter
.Base64Encoding.GetString(this.writer.trailBytes, 0, this.writer.trailByteCount));
2531
this.writer.WriteAttributeText(
XmlConverter
.Base64Encoding.GetString(this.buffer, this.offset, actualByteCount - this.writer.trailByteCount));
System\Xml\XmlBinaryWriter.cs (3)
998
captureText =
XmlConverter
.Base64Encoding.GetString(captureStream.GetBuffer(), 0, (int)captureStream.Length);
1036
WriteText(
XmlConverter
.Base64Encoding.GetString(trailBytes, 0, trailByteCount));
1038
WriteText(
XmlConverter
.Base64Encoding.GetString(buffer, offset, count));
System\Xml\XmlBufferReader.cs (8)
609
return i +
XmlConverter
.ToChars(buffer, offset + i, length - i, chars, i);
622
return i +
XmlConverter
.ToChars(buffer, offset + i, length - i, chars, charOffset + i);
637
return
XmlConverter
.ToStringUnicode(buffer, offset, length);
877
if (!
XmlConverter
.IsWhitespace(s[i]))
888
if (!
XmlConverter
.IsWhitespace((char)buffer[offset + i]))
900
if (!
XmlConverter
.IsWhitespace(ch))
989
return
XmlConverter
.ToString(buffer, offset1, length1) == s2;
1022
return
XmlConverter
.ToString(buffer, offset1, length1) == s2;
System\Xml\XmlDictionaryReader.cs (15)
626
guids[i] =
XmlConverter
.ToGuid(values[i]);
634
uniqueIds[i] =
XmlConverter
.ToUniqueId(values[i]);
682
return
XmlConverter
.ToDecimal(ReadContentAsString());
687
return
XmlConverter
.ToSingle(ReadContentAsString());
692
return
XmlConverter
.ToUniqueId(ReadContentAsString());
697
return
XmlConverter
.ToGuid(ReadContentAsString());
702
return
XmlConverter
.ToTimeSpan(ReadContentAsString());
708
XmlConverter
.ToQualifiedName(ReadContentAsString(), out prefix, out localName);
743
value =
XmlConverter
.ToBoolean(string.Empty);
763
value =
XmlConverter
.ToInt32(string.Empty);
783
value =
XmlConverter
.ToInt64(string.Empty);
803
value =
XmlConverter
.ToSingle(string.Empty);
823
value =
XmlConverter
.ToDouble(string.Empty);
843
value =
XmlConverter
.ToDecimal(string.Empty);
961
value =
XmlConverter
.ToTimeSpan(string.Empty);
System\Xml\XmlMtomWriter.cs (4)
735
if (depth == 0 && mimeWriter.WriteState == MimeWriterState.Closed &&
XmlConverter
.IsWhitespace(text))
745
if (depth == 0 && mimeWriter.WriteState == MimeWriterState.Closed &&
XmlConverter
.IsWhitespace(value.Value))
785
if (depth == 0 && mimeWriter.WriteState == MimeWriterState.Closed &&
XmlConverter
.IsWhitespace(value))
838
if (depth == 0 && mimeWriter.WriteState == MimeWriterState.Closed &&
XmlConverter
.IsWhitespace(value.Value))
System\Xml\XmlSigningNodeWriter.cs (13)
28
this.chars = new byte[
XmlConverter
.MaxPrimitiveChars];
213
int count =
XmlConverter
.ToChars(value, chars, 0);
223
int count =
XmlConverter
.ToChars(value, chars, 0);
233
int count =
XmlConverter
.ToChars(value, chars, 0);
243
int count =
XmlConverter
.ToChars(value, chars, 0);
253
int count =
XmlConverter
.ToChars(value, chars, 0);
263
int count =
XmlConverter
.ToChars(value, chars, 0);
273
int count =
XmlConverter
.ToChars(value, chars, 0);
283
int count =
XmlConverter
.ToChars(value, chars, 0);
293
string s =
XmlConverter
.ToString(value);
303
string s =
XmlConverter
.ToString(value);
313
string s =
XmlConverter
.ToString(value);
352
Base64Encoding encoding =
XmlConverter
.Base64Encoding;
System\Xml\XmlUTF8TextWriter.cs (20)
645
byte[] buffer = GetBuffer(
XmlConverter
.MaxBoolChars, out offset);
646
Advance(
XmlConverter
.ToChars(value, buffer, offset));
652
byte[] buffer = GetBuffer(
XmlConverter
.MaxDecimalChars, out offset);
653
Advance(
XmlConverter
.ToChars(value, buffer, offset));
659
byte[] buffer = GetBuffer(
XmlConverter
.MaxDoubleChars, out offset);
660
Advance(
XmlConverter
.ToChars(value, buffer, offset));
666
byte[] buffer = GetBuffer(
XmlConverter
.MaxFloatChars, out offset);
667
Advance(
XmlConverter
.ToChars(value, buffer, offset));
673
byte[] buffer = GetBuffer(
XmlConverter
.MaxDateTimeChars, out offset);
674
Advance(
XmlConverter
.ToChars(value, buffer, offset));
695
byte[] buffer = GetBuffer(
XmlConverter
.MaxInt32Chars, out offset);
696
Advance(
XmlConverter
.ToChars(value, buffer, offset));
702
byte[] buffer = GetBuffer(
XmlConverter
.MaxInt64Chars, out offset);
703
Advance(
XmlConverter
.ToChars(value, buffer, offset));
709
byte[] buffer = GetBuffer(
XmlConverter
.MaxUInt64Chars, out offset);
710
Advance(
XmlConverter
.ToChars(value, buffer, offset));
729
Base64Encoding encoding =
XmlConverter
.Base64Encoding;
885
Base64Encoding encoding =
XmlConverter
.Base64Encoding;
958
Base64Encoding encoding =
XmlConverter
.Base64Encoding;
1119
this.encoding =
XmlConverter
.Base64Encoding;