System\Xml\Schema\XmlValueConverter.cs (32)
440public override float ToSingle(bool value) {return (float) ChangeType((object) value, SingleType, null); }
441public override float ToSingle(DateTime value) {return (float) ChangeType((object) value, SingleType, null); }
442public override float ToSingle(DateTimeOffset value) {return (float) ChangeType((object) value, SingleType, null); }
443public override float ToSingle(decimal value) {return (float) ChangeType((object) value, SingleType, null); }
444public override float ToSingle(double value) {return (float) ChangeType((object) value, SingleType, null); }
445public override float ToSingle(int value) {return (float) ChangeType((object) value, SingleType, null); }
446public override float ToSingle(long value) {return (float) ChangeType((object) value, SingleType, null); }
447public override float ToSingle(float value) {return (float) ChangeType((object) value, SingleType, null); }
448public override float ToSingle(string value) {return (float) ChangeType((object) value, SingleType, null); }
449public override float ToSingle(object value) {return (float) ChangeType((object) value, SingleType, null); }
1240if (sourceType == SingleType) return ((double) (float) value);
1284if (sourceType == SingleType) return ((float) value);
1286if (sourceType == XmlAtomicValueType) return ((float) ((XmlAtomicValue) value).ValueAs(SingleType));
1288return (float) ChangeListType(value, SingleType, null);
1315if (sourceType == SingleType) return this.ToString((float) value);
1332if (destinationType == SingleType) return ((float) (double) value);
1345if (destinationType == SingleType) return ((float) value);
1359if (destinationType == SingleType) return this.ToSingle((string) value);
1375if (destinationType == SingleType) return this.ToSingle(value);
1379if (sourceType == SingleType) return (new XmlAtomicValue(SchemaType, value));
1385if (sourceType == SingleType) return (new XmlAtomicValue(SchemaType, value));
2335return (float) ChangeTypeWildcardDestination(value, SingleType, null);
2388if (sourceType == SingleType) return XmlConvert.ToString((float) value);
2494if (destinationType == SingleType) return XmlConvert.ToSingle((string) value);
2548if (destinationType == SingleType) {
2640if (clrType == SingleType) return true;
2861if (sourceType == XmlAtomicValueType) return ((float) ((XmlAtomicValue) value).ValueAs(SingleType));
2863return (float) ChangeTypeWildcardDestination(value, SingleType, null);
2988if (destinationType == SingleType) {
2989if (sourceType == XmlAtomicValueType) return ((float) ((XmlAtomicValue) value).ValueAs(SingleType));
3004if (sourceType == SingleType) return (new XmlAtomicValue(XmlSchemaType.GetBuiltInSimpleType(XmlTypeCode.Float), value));
3176if (itemTypeDst == SingleType) return ToArray<float>(value, nsResolver);