System\Xml\Schema\XmlValueConverter.cs (24)
369public override float ToSingle(double value) { return (float)ChangeType((object)value, SingleType, null); }
370public override float ToSingle(string value) { return (float)ChangeType((object)value, SingleType, null); }
371public override float ToSingle(object value) { return (float)ChangeType((object)value, SingleType, null); }
1175if (sourceType == SingleType) return ((double)(float)value);
1219if (sourceType == SingleType) return ((float)value);
1221if (sourceType == XmlAtomicValueType) return ((float)((XmlAtomicValue)value).ValueAs(SingleType));
1223return (float)ChangeListType(value, SingleType, null);
1248if (sourceType == SingleType) return this.ToString((float)value);
1266if (destinationType == SingleType) return ((float)(double)value);
1281if (destinationType == SingleType) return this.ToSingle((string)value);
1298if (destinationType == SingleType) return this.ToSingle(value);
1303if (sourceType == SingleType) return (new XmlAtomicValue(SchemaType!, value));
1310if (sourceType == SingleType) return (new XmlAtomicValue(SchemaType!, value));
2193return (float)ChangeTypeWildcardDestination(value, SingleType, null);
2250if (sourceType == SingleType) return XmlConvert.ToString((float)value);
2345if (destinationType == SingleType) return XmlConvert.ToSingle((string)value);
2411if (destinationType == SingleType)
2517if (clrType == SingleType) return true;
2661if (sourceType == XmlAtomicValueType) return ((float)((XmlAtomicValue)value).ValueAs(SingleType));
2663return (float)ChangeTypeWildcardDestination(value, SingleType, null);
2785if (destinationType == SingleType)
2787if (sourceType == XmlAtomicValueType) return ((float)((XmlAtomicValue)value).ValueAs(SingleType));
2803if (sourceType == SingleType) return (new XmlAtomicValue(XmlSchemaType.GetBuiltInSimpleType(XmlTypeCode.Float), value));
2993if (itemTypeDst == SingleType) return ToArray<float>(value, nsResolver);