FrameworkFork\Microsoft.Xml\Xml\schema\XmlValueConverter.cs (29)
418public override double ToDouble(bool value) { return (double)ChangeType((object)value, DoubleType, null); }
419public override double ToDouble(DateTime value) { return (double)ChangeType((object)value, DoubleType, null); }
420public override double ToDouble(DateTimeOffset value) { return (double)ChangeType((object)value, DoubleType, null); }
421public override double ToDouble(decimal value) { return (double)ChangeType((object)value, DoubleType, null); }
422public override double ToDouble(double value) { return (double)ChangeType((object)value, DoubleType, null); }
423public override double ToDouble(int value) { return (double)ChangeType((object)value, DoubleType, null); }
424public override double ToDouble(long value) { return (double)ChangeType((object)value, DoubleType, null); }
425public override double ToDouble(float value) { return (double)ChangeType((object)value, DoubleType, null); }
426public override double ToDouble(string value) { return (double)ChangeType((object)value, DoubleType, null); }
427public override double ToDouble(object value) { return (double)ChangeType((object)value, DoubleType, null); }
1365if (sourceType == DoubleType) return ((double)value);
1370return (double)ChangeListType(value, DoubleType, null);
1413if (sourceType == DoubleType) return ((float)(double)value);
1448if (sourceType == DoubleType) return this.ToString((double)value);
1466if (destinationType == DoubleType) return ((double)value);
1480if (destinationType == DoubleType) return ((double)(float)value);
1495if (destinationType == DoubleType) return this.ToDouble((string)value);
1512if (destinationType == DoubleType) return this.ToDouble(value);
1517if (sourceType == DoubleType) return (new XmlAtomicValue(SchemaType, (double)value));
1524if (sourceType == DoubleType) return (new XmlAtomicValue(SchemaType, (double)value));
2521return (double)ChangeTypeWildcardDestination(value, DoubleType, null);
2645if (sourceType == DoubleType) return XmlConvert.ToString((double)value);
2760if (destinationType == DoubleType) return XmlConvert.ToDouble((string)value);
2811if (destinationType == DoubleType)
2932if (clrType == DoubleType) return true;
3127return (double)ChangeTypeWildcardDestination(value, DoubleType, null);
3305if (destinationType == DoubleType)
3330if (sourceType == DoubleType) return (new XmlAtomicValue(XmlSchemaType.GetBuiltInSimpleType(XmlTypeCode.Double), (double)value));
3520if (itemTypeDst == DoubleType) return ToArray<double>(value, nsResolver);