9 overrides of ChangeType
System.Private.Xml (9)
System\Xml\Schema\XmlValueConverter.cs (9)
1073
public override object
ChangeType
(object value, Type destinationType, IXmlNamespaceResolver? nsResolver)
1289
public override object
ChangeType
(object value, Type destinationType, IXmlNamespaceResolver? nsResolver)
1521
public override object
ChangeType
(object value, Type destinationType, IXmlNamespaceResolver? nsResolver)
1679
public override object
ChangeType
(object value, Type destinationType, IXmlNamespaceResolver? nsResolver)
1799
public override object
ChangeType
(object value, Type destinationType, IXmlNamespaceResolver? nsResolver)
1978
public override object
ChangeType
(object value, Type destinationType, IXmlNamespaceResolver? nsResolver)
2749
public override object
ChangeType
(object value, Type destinationType, IXmlNamespaceResolver? nsResolver)
2930
public override object
ChangeType
(object value, Type destinationType, IXmlNamespaceResolver? nsResolver)
3172
public override object
ChangeType
(object value, Type destinationType, IXmlNamespaceResolver? nsResolver)
101 references to ChangeType
System.Private.Xml (101)
System\Xml\BinaryXml\XmlBinaryReader.cs (21)
4197
value = GetValueConverter(XmlTypeCode.Boolean).
ChangeType
(
4203
value = GetValueConverter(XmlTypeCode.NonNegativeInteger).
ChangeType
(
4209
value = GetValueConverter(XmlTypeCode.UnsignedByte).
ChangeType
(
4217
value = GetValueConverter(XmlTypeCode.Short).
ChangeType
(
4224
value = GetValueConverter(XmlTypeCode.Int).
ChangeType
(
4231
value = GetValueConverter(XmlTypeCode.Long).
ChangeType
(
4237
value = GetValueConverter(XmlTypeCode.Byte).
ChangeType
(
4245
value = GetValueConverter(XmlTypeCode.UnsignedShort).
ChangeType
(
4252
value = GetValueConverter(XmlTypeCode.UnsignedInt).
ChangeType
(
4259
value = GetValueConverter(XmlTypeCode.UnsignedLong).
ChangeType
(
4266
value = GetValueConverter(XmlTypeCode.Float).
ChangeType
(
4273
value = GetValueConverter(XmlTypeCode.Double).
ChangeType
(
4283
value = GetValueConverter(XmlTypeCode.Decimal).
ChangeType
(
4289
value = GetValueConverter(XmlTypeCode.Decimal).
ChangeType
(
4297
value = GetValueConverter(XmlTypeCode.Decimal).
ChangeType
(
4324
value = GetValueConverter(token == BinXmlToken.XSD_BINHEX ? XmlTypeCode.HexBinary : XmlTypeCode.Base64Binary).
ChangeType
(
4335
value = GetValueConverter(XmlTypeCode.DateTime).
ChangeType
(
4343
value = GetValueConverter(XmlTypeCode.DateTime).
ChangeType
(
4349
value = GetValueConverter(XmlTypeCode.Time).
ChangeType
(
4355
value = GetValueConverter(XmlTypeCode.Date).
ChangeType
(
4366
value = GetValueConverter(XmlTypeCode.QName).
ChangeType
(
System\Xml\Core\XsdValidatingReader.cs (4)
755
return XmlUntypedConverter.Untyped.
ChangeType
(typedValue, returnType, namespaceResolver);
1085
return xmlType.ValueConverter.
ChangeType
(typedValue!, returnType, namespaceResolver);
1089
return XmlUntypedConverter.Untyped.
ChangeType
(typedValue!, returnType, namespaceResolver);
2730
typedValue = xmlType.ValueConverter.
ChangeType
(typedValue, xmlType.Datatype.ValueType, _thisNSResolver);
System\Xml\Core\XsdValidatingReaderAsync.cs (3)
105
return XmlUntypedConverter.Untyped.
ChangeType
(typedValue, returnType, namespaceResolver);
201
return xmlType.ValueConverter.
ChangeType
(typedValue, returnType, namespaceResolver);
205
return XmlUntypedConverter.Untyped.
ChangeType
(typedValue, returnType, namespaceResolver);
System\Xml\Schema\DataTypeImplementation.cs (6)
585
valueToCheck = this.ValueConverter.
ChangeType
(value, this.ValueType, namespaceResolver);
589
string s1 = (string)this.ValueConverter.
ChangeType
(value, typeof(string), namespaceResolver); //Using value here to avoid info loss
1028
object valueToCheck = this.ValueConverter.
ChangeType
(value, this.ValueType, namespaceResolver);
1043
string s1 = (string)itemValueConverter.
ChangeType
(item, typeof(string), namespaceResolver);
1057
string s1 = (string)this.ValueConverter.
ChangeType
(valueToCheck, typeof(string), namespaceResolver);
1310
string s1 = (string)this.ValueConverter.
ChangeType
(valueToCheck, typeof(string), nsmgr); //Using value here to avoid info loss
System\Xml\Schema\XmlAtomicValue.cs (2)
234
return valueConverter.
ChangeType
(_objVal, ValueType, _nsPrefix);
374
return valueConverter.
ChangeType
(_objVal, type, nsResolver);
System\Xml\Schema\XmlSchemaDataType.cs (1)
42
return ValueConverter.
ChangeType
(value, targetType, namespaceResolver);
System\Xml\Schema\XmlValueConverter.cs (61)
329
public override bool ToBoolean(DateTime value) { return (bool)
ChangeType
((object)value, BooleanType, null); }
330
public override bool ToBoolean(double value) { return (bool)
ChangeType
((object)value, BooleanType, null); }
331
public override bool ToBoolean(int value) { return (bool)
ChangeType
((object)value, BooleanType, null); }
332
public override bool ToBoolean(long value) { return (bool)
ChangeType
((object)value, BooleanType, null); }
333
public override bool ToBoolean(string value) { return (bool)
ChangeType
((object)value, BooleanType, null); }
334
public override bool ToBoolean(object value) { return (bool)
ChangeType
((object)value, BooleanType, null); }
336
public override DateTime ToDateTime(bool value) { return (DateTime)
ChangeType
((object)value, DateTimeType, null); }
337
public override DateTime ToDateTime(DateTimeOffset value) { return (DateTime)
ChangeType
((object)value, DateTimeType, null); }
338
public override DateTime ToDateTime(double value) { return (DateTime)
ChangeType
((object)value, DateTimeType, null); }
339
public override DateTime ToDateTime(int value) { return (DateTime)
ChangeType
((object)value, DateTimeType, null); }
340
public override DateTime ToDateTime(long value) { return (DateTime)
ChangeType
((object)value, DateTimeType, null); }
341
public override DateTime ToDateTime(string value) { return (DateTime)
ChangeType
((object)value, DateTimeType, null); }
342
public override DateTime ToDateTime(object value) { return (DateTime)
ChangeType
((object)value, DateTimeType, null); }
343
public override DateTimeOffset ToDateTimeOffset(DateTime value) { return (DateTimeOffset)
ChangeType
((object)value, DateTimeOffsetType, null); }
344
public override DateTimeOffset ToDateTimeOffset(string value) { return (DateTimeOffset)
ChangeType
((object)value, DateTimeOffsetType, null); }
345
public override DateTimeOffset ToDateTimeOffset(object value) { return (DateTimeOffset)
ChangeType
((object)value, DateTimeOffsetType, null); }
346
public override decimal ToDecimal(string value) { return (decimal)
ChangeType
((object)value, DecimalType, null); }
347
public override decimal ToDecimal(object value) { return (decimal)
ChangeType
((object)value, DecimalType, null); }
349
public override double ToDouble(bool value) { return (double)
ChangeType
((object)value, DoubleType, null); }
350
public override double ToDouble(DateTime value) { return (double)
ChangeType
((object)value, DoubleType, null); }
351
public override double ToDouble(int value) { return (double)
ChangeType
((object)value, DoubleType, null); }
352
public override double ToDouble(long value) { return (double)
ChangeType
((object)value, DoubleType, null); }
353
public override double ToDouble(string value) { return (double)
ChangeType
((object)value, DoubleType, null); }
354
public override double ToDouble(object value) { return (double)
ChangeType
((object)value, DoubleType, null); }
356
public override int ToInt32(bool value) { return (int)
ChangeType
((object)value, Int32Type, null); }
357
public override int ToInt32(DateTime value) { return (int)
ChangeType
((object)value, Int32Type, null); }
358
public override int ToInt32(double value) { return (int)
ChangeType
((object)value, Int32Type, null); }
359
public override int ToInt32(long value) { return (int)
ChangeType
((object)value, Int32Type, null); }
360
public override int ToInt32(string value) { return (int)
ChangeType
((object)value, Int32Type, null); }
361
public override int ToInt32(object value) { return (int)
ChangeType
((object)value, Int32Type, null); }
363
public override long ToInt64(bool value) { return (long)
ChangeType
((object)value, Int64Type, null); }
364
public override long ToInt64(DateTime value) { return (long)
ChangeType
((object)value, Int64Type, null); }
365
public override long ToInt64(double value) { return (long)
ChangeType
((object)value, Int64Type, null); }
366
public override long ToInt64(int value) { return (long)
ChangeType
((object)value, Int64Type, null); }
367
public override long ToInt64(string value) { return (long)
ChangeType
((object)value, Int64Type, null); }
368
public override long ToInt64(object value) { return (long)
ChangeType
((object)value, Int64Type, null); }
369
public override float ToSingle(double value) { return (float)
ChangeType
((object)value, SingleType, null); }
370
public override float ToSingle(string value) { return (float)
ChangeType
((object)value, SingleType, null); }
371
public override float ToSingle(object value) { return (float)
ChangeType
((object)value, SingleType, null); }
373
public override string ToString(bool value) { return (string)
ChangeType
((object)value, StringType, null); }
374
public override string ToString(DateTime value) { return (string)
ChangeType
((object)value, StringType, null); }
375
public override string ToString(DateTimeOffset value) { return (string)
ChangeType
((object)value, StringType, null); }
376
public override string ToString(decimal value) { return (string)
ChangeType
((object)value, StringType, null); }
377
public override string ToString(double value) { return (string)
ChangeType
((object)value, StringType, null); }
378
public override string ToString(int value) { return (string)
ChangeType
((object)value, StringType, null); }
379
public override string ToString(long value) { return (string)
ChangeType
((object)value, StringType, null); }
380
public override string ToString(float value) { return (string)
ChangeType
((object)value, StringType, null); }
381
public override string ToString(object value, IXmlNamespaceResolver? nsResolver) { return (string)
ChangeType
((object)value, StringType, nsResolver); }
384
public override object ChangeType(bool value, Type destinationType) { return (object)
ChangeType
((object)value, destinationType, null); }
385
public override object ChangeType(DateTime value, Type destinationType) { return (object)
ChangeType
((object)value, destinationType, null); }
386
public override object ChangeType(decimal value, Type destinationType) { return (object)
ChangeType
((object)value, destinationType, null); }
387
public override object ChangeType(double value, Type destinationType) { return (object)
ChangeType
((object)value, destinationType, null); }
388
public override object ChangeType(int value, Type destinationType) { return (object)
ChangeType
((object)value, destinationType, null); }
389
public override object ChangeType(long value, Type destinationType) { return (object)
ChangeType
((object)value, destinationType, null); }
390
public override object ChangeType(string value, Type destinationType, IXmlNamespaceResolver? nsResolver) { return (object)
ChangeType
((object)value, destinationType, nsResolver); }
391
public override object ChangeType(object value, Type destinationType) { return this.
ChangeType
(value, destinationType, null); }
3044
arrDst[i] = (T)this.atomicConverter!.
ChangeType
(listSrc[i]!, typeof(T), nsResolver);
3055
listDst.Add((T)this.atomicConverter!.
ChangeType
(value!, typeof(T), nsResolver));
3072
arrDst[i] = this.atomicConverter!.
ChangeType
(listSrc[i]!, ObjectType, nsResolver);
3083
listDst.Add(this.atomicConverter!.
ChangeType
(value!, ObjectType, nsResolver));
3185
return XmlAnyListConverter.ItemList.
ChangeType
(value, destinationType, nsResolver);
System\Xml\XPath\XPathNavigator.cs (2)
99
return schemaType.ValueConverter.
ChangeType
(datatype.ParseValue(Value, NameTable, this), datatype.ValueType, this);
368
return schemaType.ValueConverter.
ChangeType
(datatype.ParseValue(Value, NameTable, nsResolver), returnType, nsResolver);
System\Xml\Xsl\Runtime\XmlQueryRuntime.cs (1)
195
_globalValues[idx] = (IList<XPathItem>)XmlAnyListConverter.ItemList.
ChangeType
(value, typeof(XPathItem[]), null);