FrameworkFork\Microsoft.Xml\Xml\schema\XmlValueConverter.cs (32)
451public override float ToSingle(bool value) { return (float)ChangeType((object)value, SingleType, null); }
452public override float ToSingle(DateTime value) { return (float)ChangeType((object)value, SingleType, null); }
453public override float ToSingle(DateTimeOffset value) { return (float)ChangeType((object)value, SingleType, null); }
454public override float ToSingle(decimal value) { return (float)ChangeType((object)value, SingleType, null); }
455public override float ToSingle(double value) { return (float)ChangeType((object)value, SingleType, null); }
456public override float ToSingle(int value) { return (float)ChangeType((object)value, SingleType, null); }
457public override float ToSingle(long value) { return (float)ChangeType((object)value, SingleType, null); }
458public override float ToSingle(float value) { return (float)ChangeType((object)value, SingleType, null); }
459public override float ToSingle(string value) { return (float)ChangeType((object)value, SingleType, null); }
460public override float ToSingle(object value) { return (float)ChangeType((object)value, SingleType, null); }
1366if (sourceType == SingleType) return ((double)(float)value);
1414if (sourceType == SingleType) return ((float)value);
1416if (sourceType == XmlAtomicValueType) return ((float)((XmlAtomicValue)value).ValueAs(SingleType));
1418return (float)ChangeListType(value, SingleType, null);
1449if (sourceType == SingleType) return this.ToString((float)value);
1467if (destinationType == SingleType) return ((float)(double)value);
1481if (destinationType == SingleType) return ((float)value);
1496if (destinationType == SingleType) return this.ToSingle((string)value);
1513if (destinationType == SingleType) return this.ToSingle(value);
1518if (sourceType == SingleType) return (new XmlAtomicValue(SchemaType, value));
1525if (sourceType == SingleType) return (new XmlAtomicValue(SchemaType, value));
2587return (float)ChangeTypeWildcardDestination(value, SingleType, null);
2650if (sourceType == SingleType) return XmlConvert.ToString((float)value);
2765if (destinationType == SingleType) return XmlConvert.ToSingle((string)value);
2831if (destinationType == SingleType)
2937if (clrType == SingleType) return true;
3173if (sourceType == XmlAtomicValueType) return ((float)((XmlAtomicValue)value).ValueAs(SingleType));
3175return (float)ChangeTypeWildcardDestination(value, SingleType, null);
3317if (destinationType == SingleType)
3319if (sourceType == XmlAtomicValueType) return ((float)((XmlAtomicValue)value).ValueAs(SingleType));
3335if (sourceType == SingleType) return (new XmlAtomicValue(XmlSchemaType.GetBuiltInSimpleType(XmlTypeCode.Float), value));
3525if (itemTypeDst == SingleType) return ToArray<float>(value, nsResolver);