10 overrides of ChangeType
System.Xml (10)
System\Xml\Schema\XmlValueConverter.cs (10)
1116
public override object
ChangeType
(object value, Type destinationType, IXmlNamespaceResolver nsResolver) {
1367
public override object
ChangeType
(object value, Type destinationType, IXmlNamespaceResolver nsResolver) {
1619
public override object
ChangeType
(object value, Type destinationType, IXmlNamespaceResolver nsResolver) {
1778
public override object
ChangeType
(object value, Type destinationType, IXmlNamespaceResolver nsResolver) {
1937
public override object
ChangeType
(object value, Type destinationType, IXmlNamespaceResolver nsResolver) {
2142
public override object
ChangeType
(object value, Type destinationType, IXmlNamespaceResolver nsResolver) {
2720
public override object
ChangeType
(object value, Type destinationType, IXmlNamespaceResolver nsResolver) {
2960
public override object
ChangeType
(object value, Type destinationType, IXmlNamespaceResolver nsResolver) {
3117
public override object
ChangeType
(object value, Type destinationType, IXmlNamespaceResolver nsResolver) {
3341
public override object
ChangeType
(object value, Type destinationType, IXmlNamespaceResolver nsResolver) {
145 references to ChangeType
System.Xml (145)
System\Xml\BinaryXml\XmlBinaryReader.cs (21)
3739
value = GetValueConverter(XmlTypeCode.Boolean).
ChangeType
(
3745
value = GetValueConverter(XmlTypeCode.NonNegativeInteger).
ChangeType
(
3751
value = GetValueConverter(XmlTypeCode.UnsignedByte).
ChangeType
(
3758
value = GetValueConverter(XmlTypeCode.Short).
ChangeType
(
3764
value = GetValueConverter(XmlTypeCode.Int).
ChangeType
(
3770
value = GetValueConverter(XmlTypeCode.Long).
ChangeType
(
3775
value = GetValueConverter(XmlTypeCode.Byte).
ChangeType
(
3782
value = GetValueConverter(XmlTypeCode.UnsignedShort).
ChangeType
(
3788
value = GetValueConverter(XmlTypeCode.UnsignedInt).
ChangeType
(
3794
value = GetValueConverter(XmlTypeCode.UnsignedLong).
ChangeType
(
3800
value = GetValueConverter(XmlTypeCode.Float).
ChangeType
(
3806
value = GetValueConverter(XmlTypeCode.Double).
ChangeType
(
3816
value = GetValueConverter(XmlTypeCode.Decimal).
ChangeType
(
3822
value = GetValueConverter(XmlTypeCode.Decimal).
ChangeType
(
3830
value = GetValueConverter(XmlTypeCode.Decimal).
ChangeType
(
3855
value = GetValueConverter(token == BinXmlToken.XSD_BINHEX ? XmlTypeCode.HexBinary : XmlTypeCode.Base64Binary).
ChangeType
(
3866
value = GetValueConverter(XmlTypeCode.DateTime).
ChangeType
(
3874
value = GetValueConverter(XmlTypeCode.DateTime).
ChangeType
(
3880
value = GetValueConverter(XmlTypeCode.Time).
ChangeType
(
3886
value = GetValueConverter(XmlTypeCode.Date).
ChangeType
(
3896
value = GetValueConverter(XmlTypeCode.QName).
ChangeType
(
System\Xml\Core\XsdValidatingReader.cs (4)
601
return XmlUntypedConverter.Untyped.
ChangeType
(typedValue, returnType, namespaceResolver);
857
return xmlType.ValueConverter.
ChangeType
(typedValue, returnType, namespaceResolver);
860
return XmlUntypedConverter.Untyped.
ChangeType
(typedValue, returnType, namespaceResolver);
2138
typedValue = xmlType.ValueConverter.
ChangeType
(typedValue, xmlType.Datatype.ValueType, thisNSResolver);
System\Xml\Core\XsdValidatingReaderAsync.cs (3)
83
return XmlUntypedConverter.Untyped.
ChangeType
(typedValue, returnType, namespaceResolver);
158
return xmlType.ValueConverter.
ChangeType
(typedValue, returnType, namespaceResolver);
161
return XmlUntypedConverter.Untyped.
ChangeType
(typedValue, returnType, namespaceResolver);
System\Xml\Schema\DataTypeImplementation.cs (7)
478
return ValueConverter.
ChangeType
(ParseValue(s, nameTable, nsmgr), typDest, nsmgr);
521
valueToCheck = this.ValueConverter.
ChangeType
(value, this.ValueType, namespaceResolver);
524
string s1 = (string)this.ValueConverter.
ChangeType
(value, typeof(System.String), namespaceResolver); //Using value here to avoid info loss
938
object valueToCheck = this.ValueConverter.
ChangeType
(value, this.ValueType, namespaceResolver);
951
string s1 = (string)itemValueConverter.
ChangeType
(item, typeof(System.String), namespaceResolver);
963
string s1 = (string)this.ValueConverter.
ChangeType
(valueToCheck, typeof(System.String), namespaceResolver);
1169
string s1 = (string)this.ValueConverter.
ChangeType
(valueToCheck, typeof(System.String), nsmgr); //Using value here to avoid info loss
System\Xml\Schema\XmlAtomicValue.cs (2)
193
return valueConverter.
ChangeType
(this.objVal, ValueType, this.nsPrefix);
310
return valueConverter.
ChangeType
(this.objVal, type, nsResolver);
System\Xml\Schema\XmlSchemaDataType.cs (1)
76
return ValueConverter.
ChangeType
(value, targetType, namespaceResolver);
System\Xml\Schema\XmlValueConverter.cs (105)
363
public override bool ToBoolean(bool value) {return (bool)
ChangeType
((object) value, BooleanType, null); }
364
public override bool ToBoolean(DateTime value) {return (bool)
ChangeType
((object) value, BooleanType, null); }
365
public override bool ToBoolean(DateTimeOffset value) {return (bool)
ChangeType
((object) value, BooleanType, null); }
366
public override bool ToBoolean(decimal value) {return (bool)
ChangeType
((object) value, BooleanType, null); }
367
public override bool ToBoolean(double value) {return (bool)
ChangeType
((object) value, BooleanType, null); }
368
public override bool ToBoolean(int value) {return (bool)
ChangeType
((object) value, BooleanType, null); }
369
public override bool ToBoolean(long value) {return (bool)
ChangeType
((object) value, BooleanType, null); }
370
public override bool ToBoolean(float value) {return (bool)
ChangeType
((object) value, BooleanType, null); }
371
public override bool ToBoolean(string value) {return (bool)
ChangeType
((object) value, BooleanType, null); }
372
public override bool ToBoolean(object value) {return (bool)
ChangeType
((object) value, BooleanType, null); }
374
public override DateTime ToDateTime(bool value) {return (DateTime)
ChangeType
((object) value, DateTimeType, null); }
375
public override DateTime ToDateTime(DateTime value) {return (DateTime)
ChangeType
((object) value, DateTimeType, null); }
376
public override DateTime ToDateTime(DateTimeOffset value) {return (DateTime)
ChangeType
((object) value, DateTimeType, null); }
377
public override DateTime ToDateTime(decimal value) {return (DateTime)
ChangeType
((object) value, DateTimeType, null); }
378
public override DateTime ToDateTime(double value) {return (DateTime)
ChangeType
((object) value, DateTimeType, null); }
379
public override DateTime ToDateTime(int value) {return (DateTime)
ChangeType
((object) value, DateTimeType, null); }
380
public override DateTime ToDateTime(long value) {return (DateTime)
ChangeType
((object) value, DateTimeType, null); }
381
public override DateTime ToDateTime(float value) {return (DateTime)
ChangeType
((object) value, DateTimeType, null); }
382
public override DateTime ToDateTime(string value) {return (DateTime)
ChangeType
((object) value, DateTimeType, null); }
383
public override DateTime ToDateTime(object value) {return (DateTime)
ChangeType
((object) value, DateTimeType, null); }
385
public override DateTimeOffset ToDateTimeOffset(bool value) {return (DateTimeOffset)
ChangeType
((object) value, DateTimeOffsetType, null); }
386
public override DateTimeOffset ToDateTimeOffset(DateTime value) {return (DateTimeOffset)
ChangeType
((object) value, DateTimeOffsetType, null); }
387
public override DateTimeOffset ToDateTimeOffset(DateTimeOffset value) {return (DateTimeOffset)
ChangeType
((object) value, DateTimeOffsetType, null); }
388
public override DateTimeOffset ToDateTimeOffset(decimal value) {return (DateTimeOffset)
ChangeType
((object) value, DateTimeOffsetType, null); }
389
public override DateTimeOffset ToDateTimeOffset(double value) {return (DateTimeOffset)
ChangeType
((object) value, DateTimeOffsetType, null); }
390
public override DateTimeOffset ToDateTimeOffset(int value) {return (DateTimeOffset)
ChangeType
((object) value, DateTimeOffsetType, null); }
391
public override DateTimeOffset ToDateTimeOffset(long value) {return (DateTimeOffset)
ChangeType
((object) value, DateTimeOffsetType, null); }
392
public override DateTimeOffset ToDateTimeOffset(float value) {return (DateTimeOffset)
ChangeType
((object) value, DateTimeOffsetType, null); }
393
public override DateTimeOffset ToDateTimeOffset(string value) {return (DateTimeOffset)
ChangeType
((object) value, DateTimeOffsetType, null); }
394
public override DateTimeOffset ToDateTimeOffset(object value) {return (DateTimeOffset)
ChangeType
((object) value, DateTimeOffsetType, null); }
396
public override decimal ToDecimal(bool value) {return (decimal)
ChangeType
((object) value, DecimalType, null); }
397
public override decimal ToDecimal(DateTime value) {return (decimal)
ChangeType
((object) value, DecimalType, null); }
398
public override decimal ToDecimal(DateTimeOffset value) {return (decimal)
ChangeType
((object) value, DecimalType, null); }
399
public override decimal ToDecimal(decimal value) {return (decimal)
ChangeType
((object) value, DecimalType, null); }
400
public override decimal ToDecimal(double value) {return (decimal)
ChangeType
((object) value, DecimalType, null); }
401
public override decimal ToDecimal(int value) {return (decimal)
ChangeType
((object) value, DecimalType, null); }
402
public override decimal ToDecimal(long value) {return (decimal)
ChangeType
((object) value, DecimalType, null); }
403
public override decimal ToDecimal(float value) {return (decimal)
ChangeType
((object) value, DecimalType, null); }
404
public override decimal ToDecimal(string value) {return (decimal)
ChangeType
((object) value, DecimalType, null); }
405
public override decimal ToDecimal(object value) {return (decimal)
ChangeType
((object) value, DecimalType, null); }
407
public override double ToDouble(bool value) {return (double)
ChangeType
((object) value, DoubleType, null); }
408
public override double ToDouble(DateTime value) {return (double)
ChangeType
((object) value, DoubleType, null); }
409
public override double ToDouble(DateTimeOffset value) {return (double)
ChangeType
((object) value, DoubleType, null); }
410
public override double ToDouble(decimal value) {return (double)
ChangeType
((object) value, DoubleType, null); }
411
public override double ToDouble(double value) {return (double)
ChangeType
((object) value, DoubleType, null); }
412
public override double ToDouble(int value) {return (double)
ChangeType
((object) value, DoubleType, null); }
413
public override double ToDouble(long value) {return (double)
ChangeType
((object) value, DoubleType, null); }
414
public override double ToDouble(float value) {return (double)
ChangeType
((object) value, DoubleType, null); }
415
public override double ToDouble(string value) {return (double)
ChangeType
((object) value, DoubleType, null); }
416
public override double ToDouble(object value) {return (double)
ChangeType
((object) value, DoubleType, null); }
418
public override int ToInt32(bool value) {return (int)
ChangeType
((object) value, Int32Type, null); }
419
public override int ToInt32(DateTime value) {return (int)
ChangeType
((object) value, Int32Type, null); }
420
public override int ToInt32(DateTimeOffset value) {return (int)
ChangeType
((object) value, Int32Type, null); }
421
public override int ToInt32(decimal value) {return (int)
ChangeType
((object) value, Int32Type, null); }
422
public override int ToInt32(double value) {return (int)
ChangeType
((object) value, Int32Type, null); }
423
public override int ToInt32(int value) {return (int)
ChangeType
((object) value, Int32Type, null); }
424
public override int ToInt32(long value) {return (int)
ChangeType
((object) value, Int32Type, null); }
425
public override int ToInt32(float value) {return (int)
ChangeType
((object) value, Int32Type, null); }
426
public override int ToInt32(string value) {return (int)
ChangeType
((object) value, Int32Type, null); }
427
public override int ToInt32(object value) {return (int)
ChangeType
((object) value, Int32Type, null); }
429
public override long ToInt64(bool value) {return (long)
ChangeType
((object) value, Int64Type, null); }
430
public override long ToInt64(DateTime value) {return (long)
ChangeType
((object) value, Int64Type, null); }
431
public override long ToInt64(DateTimeOffset value) {return (long)
ChangeType
((object) value, Int64Type, null); }
432
public override long ToInt64(decimal value) {return (long)
ChangeType
((object) value, Int64Type, null); }
433
public override long ToInt64(double value) {return (long)
ChangeType
((object) value, Int64Type, null); }
434
public override long ToInt64(int value) {return (long)
ChangeType
((object) value, Int64Type, null); }
435
public override long ToInt64(long value) {return (long)
ChangeType
((object) value, Int64Type, null); }
436
public override long ToInt64(float value) {return (long)
ChangeType
((object) value, Int64Type, null); }
437
public override long ToInt64(string value) {return (long)
ChangeType
((object) value, Int64Type, null); }
438
public override long ToInt64(object value) {return (long)
ChangeType
((object) value, Int64Type, null); }
440
public override float ToSingle(bool value) {return (float)
ChangeType
((object) value, SingleType, null); }
441
public override float ToSingle(DateTime value) {return (float)
ChangeType
((object) value, SingleType, null); }
442
public override float ToSingle(DateTimeOffset value) {return (float)
ChangeType
((object) value, SingleType, null); }
443
public override float ToSingle(decimal value) {return (float)
ChangeType
((object) value, SingleType, null); }
444
public override float ToSingle(double value) {return (float)
ChangeType
((object) value, SingleType, null); }
445
public override float ToSingle(int value) {return (float)
ChangeType
((object) value, SingleType, null); }
446
public override float ToSingle(long value) {return (float)
ChangeType
((object) value, SingleType, null); }
447
public override float ToSingle(float value) {return (float)
ChangeType
((object) value, SingleType, null); }
448
public override float ToSingle(string value) {return (float)
ChangeType
((object) value, SingleType, null); }
449
public override float ToSingle(object value) {return (float)
ChangeType
((object) value, SingleType, null); }
451
public override string ToString(bool value) {return (string)
ChangeType
((object) value, StringType, null); }
452
public override string ToString(DateTime value) {return (string)
ChangeType
((object) value, StringType, null); }
453
public override string ToString(DateTimeOffset value) {return (string)
ChangeType
((object) value, StringType, null); }
454
public override string ToString(decimal value) {return (string)
ChangeType
((object) value, StringType, null); }
455
public override string ToString(double value) {return (string)
ChangeType
((object) value, StringType, null); }
456
public override string ToString(int value) {return (string)
ChangeType
((object) value, StringType, null); }
457
public override string ToString(long value) {return (string)
ChangeType
((object) value, StringType, null); }
458
public override string ToString(float value) {return (string)
ChangeType
((object) value, StringType, null); }
459
public override string ToString(string value, IXmlNamespaceResolver nsResolver) {return (string)
ChangeType
((object) value, StringType, nsResolver); }
460
public override string ToString(object value, IXmlNamespaceResolver nsResolver) {return (string)
ChangeType
((object) value, StringType, nsResolver); }
464
public override object ChangeType(bool value, Type destinationType) {return (object)
ChangeType
((object) value, destinationType, null); }
465
public override object ChangeType(DateTime value, Type destinationType) {return (object)
ChangeType
((object) value, destinationType, null); }
466
public override object ChangeType(DateTimeOffset value, Type destinationType) {return (object)
ChangeType
((object) value, destinationType, null); }
467
public override object ChangeType(decimal value, Type destinationType) {return (object)
ChangeType
((object) value, destinationType, null); }
468
public override object ChangeType(double value, Type destinationType) {return (object)
ChangeType
((object) value, destinationType, null); }
469
public override object ChangeType(int value, Type destinationType) {return (object)
ChangeType
((object) value, destinationType, null); }
470
public override object ChangeType(long value, Type destinationType) {return (object)
ChangeType
((object) value, destinationType, null); }
471
public override object ChangeType(float value, Type destinationType) {return (object)
ChangeType
((object) value, destinationType, null); }
472
public override object ChangeType(string value, Type destinationType, IXmlNamespaceResolver nsResolver) {return (object)
ChangeType
((object) value, destinationType, nsResolver); }
474
public override object ChangeType(object value, Type destinationType) {return this.
ChangeType
(value, destinationType, null); }
3224
arrDst[i] = (T) this.atomicConverter.
ChangeType
(listSrc[i], typeof(T), nsResolver);
3235
listDst.Add((T) this.atomicConverter.
ChangeType
(value, typeof(T), nsResolver));
3250
arrDst[i] = this.atomicConverter.
ChangeType
(listSrc[i], ObjectType, nsResolver);
3261
listDst.Add(this.atomicConverter.
ChangeType
(value, ObjectType, nsResolver));
3353
return XmlAnyListConverter.ItemList.
ChangeType
(value, destinationType, nsResolver);
System\Xml\XPath\XPathNavigator.cs (2)
92
return schemaType.ValueConverter.
ChangeType
(datatype.ParseValue(Value, NameTable, this), datatype.ValueType, this);
329
return schemaType.ValueConverter.
ChangeType
(datatype.ParseValue(Value, NameTable, nsResolver), returnType, nsResolver);