System\Xml\Schema\XmlValueConverter.cs (24)
349public override double ToDouble(bool value) { return (double)ChangeType((object)value, DoubleType, null); }
350public override double ToDouble(DateTime value) { return (double)ChangeType((object)value, DoubleType, null); }
351public override double ToDouble(int value) { return (double)ChangeType((object)value, DoubleType, null); }
352public override double ToDouble(long value) { return (double)ChangeType((object)value, DoubleType, null); }
353public override double ToDouble(string value) { return (double)ChangeType((object)value, DoubleType, null); }
354public override double ToDouble(object value) { return (double)ChangeType((object)value, DoubleType, null); }
1174if (sourceType == DoubleType) return ((double)value);
1179return (double)ChangeListType(value, DoubleType, null);
1218if (sourceType == DoubleType) return ((float)(double)value);
1247if (sourceType == DoubleType) return this.ToString((double)value);
1265if (destinationType == DoubleType) return ((double)value);
1280if (destinationType == DoubleType) return this.ToDouble((string)value);
1297if (destinationType == DoubleType) return this.ToDouble(value);
1302if (sourceType == DoubleType) return (new XmlAtomicValue(SchemaType!, (double)value));
1309if (sourceType == DoubleType) return (new XmlAtomicValue(SchemaType!, (double)value));
2127return (double)ChangeTypeWildcardDestination(value, DoubleType, null);
2245if (sourceType == DoubleType) return XmlConvert.ToString((double)value);
2340if (destinationType == DoubleType) return XmlConvert.ToDouble((string)value);
2391if (destinationType == DoubleType)
2512if (clrType == DoubleType) return true;
2615return (double)ChangeTypeWildcardDestination(value, DoubleType, null);
2773if (destinationType == DoubleType)
2798if (sourceType == DoubleType) return (new XmlAtomicValue(XmlSchemaType.GetBuiltInSimpleType(XmlTypeCode.Double), (double)value));
2988if (itemTypeDst == DoubleType) return ToArray<double>(value, nsResolver);