10 overrides of ChangeType
dotnet-svcutil-lib (10)
FrameworkFork\Microsoft.Xml\Xml\schema\XmlValueConverter.cs (10)
1230
public override object
ChangeType
(object value, Type destinationType, IXmlNamespaceResolver nsResolver)
1504
public override object
ChangeType
(object value, Type destinationType, IXmlNamespaceResolver nsResolver)
1781
public override object
ChangeType
(object value, Type destinationType, IXmlNamespaceResolver nsResolver)
1954
public override object
ChangeType
(object value, Type destinationType, IXmlNamespaceResolver nsResolver)
2134
public override object
ChangeType
(object value, Type destinationType, IXmlNamespaceResolver nsResolver)
2372
public override object
ChangeType
(object value, Type destinationType, IXmlNamespaceResolver nsResolver)
3019
public override object
ChangeType
(object value, Type destinationType, IXmlNamespaceResolver nsResolver)
3281
public override object
ChangeType
(object value, Type destinationType, IXmlNamespaceResolver nsResolver)
3462
public override object
ChangeType
(object value, Type destinationType, IXmlNamespaceResolver nsResolver)
3704
public override object
ChangeType
(object value, Type destinationType, IXmlNamespaceResolver nsResolver)
145 references to ChangeType
dotnet-svcutil-lib (145)
FrameworkFork\Microsoft.Xml\Xml\BinaryXml\XmlBinaryReader.cs (21)
4228
value = GetValueConverter(XmlTypeCode.Boolean).
ChangeType
(
4234
value = GetValueConverter(XmlTypeCode.NonNegativeInteger).
ChangeType
(
4240
value = GetValueConverter(XmlTypeCode.UnsignedByte).
ChangeType
(
4248
value = GetValueConverter(XmlTypeCode.Short).
ChangeType
(
4255
value = GetValueConverter(XmlTypeCode.Int).
ChangeType
(
4262
value = GetValueConverter(XmlTypeCode.Long).
ChangeType
(
4268
value = GetValueConverter(XmlTypeCode.Byte).
ChangeType
(
4276
value = GetValueConverter(XmlTypeCode.UnsignedShort).
ChangeType
(
4283
value = GetValueConverter(XmlTypeCode.UnsignedInt).
ChangeType
(
4290
value = GetValueConverter(XmlTypeCode.UnsignedLong).
ChangeType
(
4297
value = GetValueConverter(XmlTypeCode.Float).
ChangeType
(
4304
value = GetValueConverter(XmlTypeCode.Double).
ChangeType
(
4314
value = GetValueConverter(XmlTypeCode.Decimal).
ChangeType
(
4320
value = GetValueConverter(XmlTypeCode.Decimal).
ChangeType
(
4328
value = GetValueConverter(XmlTypeCode.Decimal).
ChangeType
(
4355
value = GetValueConverter(token == BinXmlToken.XSD_BINHEX ? XmlTypeCode.HexBinary : XmlTypeCode.Base64Binary).
ChangeType
(
4366
value = GetValueConverter(XmlTypeCode.DateTime).
ChangeType
(
4374
value = GetValueConverter(XmlTypeCode.DateTime).
ChangeType
(
4380
value = GetValueConverter(XmlTypeCode.Time).
ChangeType
(
4386
value = GetValueConverter(XmlTypeCode.Date).
ChangeType
(
4397
value = GetValueConverter(XmlTypeCode.QName).
ChangeType
(
FrameworkFork\Microsoft.Xml\Xml\Core\XsdValidatingReader.cs (4)
734
return XmlUntypedConverter.Untyped.
ChangeType
(typedValue, returnType, namespaceResolver);
1063
return xmlType.ValueConverter.
ChangeType
(typedValue, returnType, namespaceResolver);
1067
return XmlUntypedConverter.Untyped.
ChangeType
(typedValue, returnType, namespaceResolver);
2578
typedValue = xmlType.ValueConverter.
ChangeType
(typedValue, xmlType.Datatype.ValueType, _thisNSResolver);
FrameworkFork\Microsoft.Xml\Xml\Core\XsdValidatingReaderAsync.cs (3)
106
return XmlUntypedConverter.Untyped.
ChangeType
(typedValue, returnType, namespaceResolver);
198
return xmlType.ValueConverter.
ChangeType
(typedValue, returnType, namespaceResolver);
202
return XmlUntypedConverter.Untyped.
ChangeType
(typedValue, returnType, namespaceResolver);
FrameworkFork\Microsoft.Xml\Xml\schema\DatatypeImplementation.cs (7)
544
return ValueConverter.
ChangeType
(ParseValue(s, nameTable, nsmgr), typDest, nsmgr);
599
valueToCheck = this.ValueConverter.
ChangeType
(value, this.ValueType, namespaceResolver);
603
string s1 = (string)this.ValueConverter.
ChangeType
(value, typeof(System.String), namespaceResolver); //Using value here to avoid info loss
1063
object valueToCheck = this.ValueConverter.
ChangeType
(value, this.ValueType, namespaceResolver);
1078
string s1 = (string)itemValueConverter.
ChangeType
(item, typeof(System.String), namespaceResolver);
1092
string s1 = (string)this.ValueConverter.
ChangeType
(valueToCheck, typeof(System.String), namespaceResolver);
1336
string s1 = (string)this.ValueConverter.
ChangeType
(valueToCheck, typeof(System.String), nsmgr); //Using value here to avoid info loss
FrameworkFork\Microsoft.Xml\Xml\schema\XmlAtomicValue.cs (2)
224
return valueConverter.
ChangeType
(_objVal, ValueType, _nsPrefix);
364
return valueConverter.
ChangeType
(_objVal, type, nsResolver);
FrameworkFork\Microsoft.Xml\Xml\schema\XmlSchemaDatatype.cs (1)
85
return ValueConverter.
ChangeType
(value, targetType, namespaceResolver);
FrameworkFork\Microsoft.Xml\Xml\schema\XmlValueConverter.cs (105)
374
public override bool ToBoolean(bool value) { return (bool)
ChangeType
((object)value, BooleanType, null); }
375
public override bool ToBoolean(DateTime value) { return (bool)
ChangeType
((object)value, BooleanType, null); }
376
public override bool ToBoolean(DateTimeOffset value) { return (bool)
ChangeType
((object)value, BooleanType, null); }
377
public override bool ToBoolean(decimal value) { return (bool)
ChangeType
((object)value, BooleanType, null); }
378
public override bool ToBoolean(double value) { return (bool)
ChangeType
((object)value, BooleanType, null); }
379
public override bool ToBoolean(int value) { return (bool)
ChangeType
((object)value, BooleanType, null); }
380
public override bool ToBoolean(long value) { return (bool)
ChangeType
((object)value, BooleanType, null); }
381
public override bool ToBoolean(float value) { return (bool)
ChangeType
((object)value, BooleanType, null); }
382
public override bool ToBoolean(string value) { return (bool)
ChangeType
((object)value, BooleanType, null); }
383
public override bool ToBoolean(object value) { return (bool)
ChangeType
((object)value, BooleanType, null); }
385
public override DateTime ToDateTime(bool value) { return (DateTime)
ChangeType
((object)value, DateTimeType, null); }
386
public override DateTime ToDateTime(DateTime value) { return (DateTime)
ChangeType
((object)value, DateTimeType, null); }
387
public override DateTime ToDateTime(DateTimeOffset value) { return (DateTime)
ChangeType
((object)value, DateTimeType, null); }
388
public override DateTime ToDateTime(decimal value) { return (DateTime)
ChangeType
((object)value, DateTimeType, null); }
389
public override DateTime ToDateTime(double value) { return (DateTime)
ChangeType
((object)value, DateTimeType, null); }
390
public override DateTime ToDateTime(int value) { return (DateTime)
ChangeType
((object)value, DateTimeType, null); }
391
public override DateTime ToDateTime(long value) { return (DateTime)
ChangeType
((object)value, DateTimeType, null); }
392
public override DateTime ToDateTime(float value) { return (DateTime)
ChangeType
((object)value, DateTimeType, null); }
393
public override DateTime ToDateTime(string value) { return (DateTime)
ChangeType
((object)value, DateTimeType, null); }
394
public override DateTime ToDateTime(object value) { return (DateTime)
ChangeType
((object)value, DateTimeType, null); }
396
public override DateTimeOffset ToDateTimeOffset(bool value) { return (DateTimeOffset)
ChangeType
((object)value, DateTimeOffsetType, null); }
397
public override DateTimeOffset ToDateTimeOffset(DateTime value) { return (DateTimeOffset)
ChangeType
((object)value, DateTimeOffsetType, null); }
398
public override DateTimeOffset ToDateTimeOffset(DateTimeOffset value) { return (DateTimeOffset)
ChangeType
((object)value, DateTimeOffsetType, null); }
399
public override DateTimeOffset ToDateTimeOffset(decimal value) { return (DateTimeOffset)
ChangeType
((object)value, DateTimeOffsetType, null); }
400
public override DateTimeOffset ToDateTimeOffset(double value) { return (DateTimeOffset)
ChangeType
((object)value, DateTimeOffsetType, null); }
401
public override DateTimeOffset ToDateTimeOffset(int value) { return (DateTimeOffset)
ChangeType
((object)value, DateTimeOffsetType, null); }
402
public override DateTimeOffset ToDateTimeOffset(long value) { return (DateTimeOffset)
ChangeType
((object)value, DateTimeOffsetType, null); }
403
public override DateTimeOffset ToDateTimeOffset(float value) { return (DateTimeOffset)
ChangeType
((object)value, DateTimeOffsetType, null); }
404
public override DateTimeOffset ToDateTimeOffset(string value) { return (DateTimeOffset)
ChangeType
((object)value, DateTimeOffsetType, null); }
405
public override DateTimeOffset ToDateTimeOffset(object value) { return (DateTimeOffset)
ChangeType
((object)value, DateTimeOffsetType, null); }
407
public override decimal ToDecimal(bool value) { return (decimal)
ChangeType
((object)value, DecimalType, null); }
408
public override decimal ToDecimal(DateTime value) { return (decimal)
ChangeType
((object)value, DecimalType, null); }
409
public override decimal ToDecimal(DateTimeOffset value) { return (decimal)
ChangeType
((object)value, DecimalType, null); }
410
public override decimal ToDecimal(decimal value) { return (decimal)
ChangeType
((object)value, DecimalType, null); }
411
public override decimal ToDecimal(double value) { return (decimal)
ChangeType
((object)value, DecimalType, null); }
412
public override decimal ToDecimal(int value) { return (decimal)
ChangeType
((object)value, DecimalType, null); }
413
public override decimal ToDecimal(long value) { return (decimal)
ChangeType
((object)value, DecimalType, null); }
414
public override decimal ToDecimal(float value) { return (decimal)
ChangeType
((object)value, DecimalType, null); }
415
public override decimal ToDecimal(string value) { return (decimal)
ChangeType
((object)value, DecimalType, null); }
416
public override decimal ToDecimal(object value) { return (decimal)
ChangeType
((object)value, DecimalType, null); }
418
public override double ToDouble(bool value) { return (double)
ChangeType
((object)value, DoubleType, null); }
419
public override double ToDouble(DateTime value) { return (double)
ChangeType
((object)value, DoubleType, null); }
420
public override double ToDouble(DateTimeOffset value) { return (double)
ChangeType
((object)value, DoubleType, null); }
421
public override double ToDouble(decimal value) { return (double)
ChangeType
((object)value, DoubleType, null); }
422
public override double ToDouble(double value) { return (double)
ChangeType
((object)value, DoubleType, null); }
423
public override double ToDouble(int value) { return (double)
ChangeType
((object)value, DoubleType, null); }
424
public override double ToDouble(long value) { return (double)
ChangeType
((object)value, DoubleType, null); }
425
public override double ToDouble(float value) { return (double)
ChangeType
((object)value, DoubleType, null); }
426
public override double ToDouble(string value) { return (double)
ChangeType
((object)value, DoubleType, null); }
427
public override double ToDouble(object value) { return (double)
ChangeType
((object)value, DoubleType, null); }
429
public override int ToInt32(bool value) { return (int)
ChangeType
((object)value, Int32Type, null); }
430
public override int ToInt32(DateTime value) { return (int)
ChangeType
((object)value, Int32Type, null); }
431
public override int ToInt32(DateTimeOffset value) { return (int)
ChangeType
((object)value, Int32Type, null); }
432
public override int ToInt32(decimal value) { return (int)
ChangeType
((object)value, Int32Type, null); }
433
public override int ToInt32(double value) { return (int)
ChangeType
((object)value, Int32Type, null); }
434
public override int ToInt32(int value) { return (int)
ChangeType
((object)value, Int32Type, null); }
435
public override int ToInt32(long value) { return (int)
ChangeType
((object)value, Int32Type, null); }
436
public override int ToInt32(float value) { return (int)
ChangeType
((object)value, Int32Type, null); }
437
public override int ToInt32(string value) { return (int)
ChangeType
((object)value, Int32Type, null); }
438
public override int ToInt32(object value) { return (int)
ChangeType
((object)value, Int32Type, null); }
440
public override long ToInt64(bool value) { return (long)
ChangeType
((object)value, Int64Type, null); }
441
public override long ToInt64(DateTime value) { return (long)
ChangeType
((object)value, Int64Type, null); }
442
public override long ToInt64(DateTimeOffset value) { return (long)
ChangeType
((object)value, Int64Type, null); }
443
public override long ToInt64(decimal value) { return (long)
ChangeType
((object)value, Int64Type, null); }
444
public override long ToInt64(double value) { return (long)
ChangeType
((object)value, Int64Type, null); }
445
public override long ToInt64(int value) { return (long)
ChangeType
((object)value, Int64Type, null); }
446
public override long ToInt64(long value) { return (long)
ChangeType
((object)value, Int64Type, null); }
447
public override long ToInt64(float value) { return (long)
ChangeType
((object)value, Int64Type, null); }
448
public override long ToInt64(string value) { return (long)
ChangeType
((object)value, Int64Type, null); }
449
public override long ToInt64(object value) { return (long)
ChangeType
((object)value, Int64Type, null); }
451
public override float ToSingle(bool value) { return (float)
ChangeType
((object)value, SingleType, null); }
452
public override float ToSingle(DateTime value) { return (float)
ChangeType
((object)value, SingleType, null); }
453
public override float ToSingle(DateTimeOffset value) { return (float)
ChangeType
((object)value, SingleType, null); }
454
public override float ToSingle(decimal value) { return (float)
ChangeType
((object)value, SingleType, null); }
455
public override float ToSingle(double value) { return (float)
ChangeType
((object)value, SingleType, null); }
456
public override float ToSingle(int value) { return (float)
ChangeType
((object)value, SingleType, null); }
457
public override float ToSingle(long value) { return (float)
ChangeType
((object)value, SingleType, null); }
458
public override float ToSingle(float value) { return (float)
ChangeType
((object)value, SingleType, null); }
459
public override float ToSingle(string value) { return (float)
ChangeType
((object)value, SingleType, null); }
460
public override float ToSingle(object value) { return (float)
ChangeType
((object)value, SingleType, null); }
462
public override string ToString(bool value) { return (string)
ChangeType
((object)value, StringType, null); }
463
public override string ToString(DateTime value) { return (string)
ChangeType
((object)value, StringType, null); }
464
public override string ToString(DateTimeOffset value) { return (string)
ChangeType
((object)value, StringType, null); }
465
public override string ToString(decimal value) { return (string)
ChangeType
((object)value, StringType, null); }
466
public override string ToString(double value) { return (string)
ChangeType
((object)value, StringType, null); }
467
public override string ToString(int value) { return (string)
ChangeType
((object)value, StringType, null); }
468
public override string ToString(long value) { return (string)
ChangeType
((object)value, StringType, null); }
469
public override string ToString(float value) { return (string)
ChangeType
((object)value, StringType, null); }
470
public override string ToString(string value, IXmlNamespaceResolver nsResolver) { return (string)
ChangeType
((object)value, StringType, nsResolver); }
471
public override string ToString(object value, IXmlNamespaceResolver nsResolver) { return (string)
ChangeType
((object)value, StringType, nsResolver); }
475
public override object ChangeType(bool value, Type destinationType) { return (object)
ChangeType
((object)value, destinationType, null); }
476
public override object ChangeType(DateTime value, Type destinationType) { return (object)
ChangeType
((object)value, destinationType, null); }
477
public override object ChangeType(DateTimeOffset value, Type destinationType) { return (object)
ChangeType
((object)value, destinationType, null); }
478
public override object ChangeType(decimal value, Type destinationType) { return (object)
ChangeType
((object)value, destinationType, null); }
479
public override object ChangeType(double value, Type destinationType) { return (object)
ChangeType
((object)value, destinationType, null); }
480
public override object ChangeType(int value, Type destinationType) { return (object)
ChangeType
((object)value, destinationType, null); }
481
public override object ChangeType(long value, Type destinationType) { return (object)
ChangeType
((object)value, destinationType, null); }
482
public override object ChangeType(float value, Type destinationType) { return (object)
ChangeType
((object)value, destinationType, null); }
483
public override object ChangeType(string value, Type destinationType, IXmlNamespaceResolver nsResolver) { return (object)
ChangeType
((object)value, destinationType, nsResolver); }
485
public override object ChangeType(object value, Type destinationType) { return this.
ChangeType
(value, destinationType, null); }
3576
arrDst[i] = (T)this.atomicConverter.
ChangeType
(listSrc[i], typeof(T), nsResolver);
3587
listDst.Add((T)this.atomicConverter.
ChangeType
(value, typeof(T), nsResolver));
3604
arrDst[i] = this.atomicConverter.
ChangeType
(listSrc[i], ObjectType, nsResolver);
3615
listDst.Add(this.atomicConverter.
ChangeType
(value, ObjectType, nsResolver));
3717
return XmlAnyListConverter.ItemList.
ChangeType
(value, destinationType, nsResolver);
FrameworkFork\Microsoft.Xml\Xml\XPath\XPathNavigator.cs (2)
112
return schemaType.ValueConverter.
ChangeType
(datatype.ParseValue(Value, NameTable, this), datatype.ValueType, this);
420
return schemaType.ValueConverter.
ChangeType
(datatype.ParseValue(Value, NameTable, nsResolver), returnType, nsResolver);